user->id ?? 0); if (!in_array($adminId, config('agent.admin_ids', [1]), true)) { return response()->json([ 'code' => -1, 'timestamp' => time(), 'msg' => '无代理管理权限', 'data' => [], ]); } return $next($request); } }