getPathInfo(), '/'); /// 判断是否需要验证登录 if (!in_array($path, $this->except)) { $is_expire = '0'; //账号是否过期 if (!$is_expire) { return json_send(['code' => 'expire', 'msg' => '账号已过期']); } } // 返回下一个闭包 return $next($request); } }