<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>

                ??碼云GVP開源項目 12k star Uniapp+ElementUI 功能強大 支持多語言、二開方便! 廣告
                ## 調試 由于 MixPHP 是在命令行中啟動的,所以使用 `echo`、`var_dump`、`print_r` 調試時,輸出結果并不在瀏覽器中,而是在執行命令的終端里。 ## HTTP 404 / 500 框架默認代碼只拆分了 404/500 兩種 HTTP 錯誤,如需定制 (比如隱藏異常敏感信息等),在 `/app` 目錄搜索 `show404` `show500` 兩個方法名,根據自己的需要修改。 - 修改為 json 格式: ~~~ /** * 404處理 * @param \Throwable $e * @param Response $response * @throws \PhpDocReader\AnnotationException * @throws \ReflectionException */ public static function show404(\Throwable $e, Response $response) { $json = JsonHelper::encode([ 'message' => $e->getMessage(), 'type' => get_class($e), 'code' => $e->getCode(), 'file' => $e->getFile(), 'line' => $e->getLine(), 'trace' => $e->getTraceAsString(), ], JSON_UNESCAPED_UNICODE); $response->withBody((new StreamFactory())->createStream($json)) ->withStatus(404) ->withContentType('application/json', 'utf-8') ->end(); } /** * 500處理 * @param \Throwable $e * @param Response $response * @throws \PhpDocReader\AnnotationException * @throws \ReflectionException */ public static function show500(\Throwable $e, Response $response) { $json = JsonHelper::encode([ 'message' => $e->getMessage(), 'type' => get_class($e), 'code' => $e->getCode(), 'file' => $e->getFile(), 'line' => $e->getLine(), 'trace' => $e->getTraceAsString(), ], JSON_UNESCAPED_UNICODE); $response->withBody((new StreamFactory())->createStream($json)) ->withStatus(500) ->withContentType('application/json', 'utf-8') ->end(); } ~~~
                  <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>

                              哎呀哎呀视频在线观看