Sfoglia il codice sorgente

WebController修正

develop
sosuke.iwabuchi 2 anni fa
parent
commit
a8a01909f8
1 ha cambiato i file con 7 aggiunte e 3 eliminazioni
  1. +7
    -3
      app/Http/Controllers/Web/WebController.php

+ 7
- 3
app/Http/Controllers/Web/WebController.php Vedi File

@@ -276,9 +276,13 @@ abstract class WebController extends BaseController
Arr::set($ret, self::COL_NAME_MESSAGES . "." . self::COL_NAME_EMAIL_ID, $this->emailId);
}

return response()
->json($ret)
->withHeaders($this->makeHeader());
if (request()->wantsJson()) {
return response()
->json($ret)
->withHeaders($this->makeHeader());
} else {
abort(500);
}
}

private function makeHeader(): array


Loading…
Annulla
Salva