<ruby id="bdb3f"></ruby>

    <p id="bdb3f"><cite id="bdb3f"></cite></p>

      <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
        <p id="bdb3f"><cite id="bdb3f"></cite></p>

          <pre id="bdb3f"></pre>
          <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

          <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
          <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

          <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                <ruby id="bdb3f"></ruby>

                ??一站式輕松地調用各大LLM模型接口,支持GPT4、智譜、豆包、星火、月之暗面及文生圖、文生視頻 廣告
                ## 為每個請求添加日志 - 方便查找錯誤信息 - 操作:增加兩個中間件:一個是請求日志,一個是反饋日志 - 適用于 `laravel` 和 `lumen` 請求日志中間件 app\\Http\\Middleware\\RequestLog.php ~~~ <?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Log; class RequestLog { // describe: 記錄請求日志 public function handle($request, Closure $next) { try{ Log::debug('Request | '.$request->getPathInfo().' |', $request->input()); $response = $next($request); return $response; } catch (HttpException $e){ return $this->ajaxResponse($e->getStatusCode(), $e->getMessage(), (object)[]); } catch (\Exception $e){ return $this->apiSysErrorResponse($e->getMessage(), (object)[]); } } } ~~~ 響應日志中間件 `app\\Http\\Middleware\\ResponseLog.php` ~~~ <?php namespace App\Http\Middleware; use Closure; use Illuminate\Support\Facades\Log; class ResponseLog { // describe: 記錄響應日志 public function handle($request, Closure $next) { try{ $cline = chr(10); $response = $next($request); $return = json_encode(json_decode($response->getContent(), 1), JSON_UNESCAPED_UNICODE).$cline; //Log::debug('Response | '.$request->getPathInfo().' | '.$response->getContent()); Log::debug('Response | '.$request->getPathInfo().' | '.$return); return $response; } catch (HttpException $e){ return $this->ajaxResponse($e->getStatusCode(), $e->getMessage(), (object)[]); } catch (\Exception $e){ return $this->apiSysErrorResponse($e->getMessage(), (object)[]); } } } ~~~
                  <ruby id="bdb3f"></ruby>

                  <p id="bdb3f"><cite id="bdb3f"></cite></p>

                    <p id="bdb3f"><cite id="bdb3f"><th id="bdb3f"></th></cite></p><p id="bdb3f"></p>
                      <p id="bdb3f"><cite id="bdb3f"></cite></p>

                        <pre id="bdb3f"></pre>
                        <pre id="bdb3f"><del id="bdb3f"><thead id="bdb3f"></thead></del></pre>

                        <ruby id="bdb3f"><mark id="bdb3f"></mark></ruby><ruby id="bdb3f"></ruby>
                        <pre id="bdb3f"><pre id="bdb3f"><mark id="bdb3f"></mark></pre></pre><output id="bdb3f"></output><p id="bdb3f"></p><p id="bdb3f"></p>

                        <pre id="bdb3f"><del id="bdb3f"><progress id="bdb3f"></progress></del></pre>

                              <ruby id="bdb3f"></ruby>

                              哎呀哎呀视频在线观看