Explorar el Código

WebController修正

develop
sosuke.iwabuchi hace 2 años
padre
commit
a8a01909f8
Se han modificado 1 ficheros con 7 adiciones y 3 borrados
  1. +7
    -3
      app/Http/Controllers/Web/WebController.php

+ 7
- 3
app/Http/Controllers/Web/WebController.php Ver fichero

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


Cargando…
Cancelar
Guardar