xiaogang 4 년 전
부모
커밋
4a0f5f6c2f
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      app/Http/Controllers/Api/HomeController.php

+ 2 - 2
app/Http/Controllers/Api/HomeController.php

xqd
@@ -92,10 +92,10 @@ class HomeController extends Controller
     public function user_detail(Request $request){
         try {
             $res = $this->homeService->user_detail($request->user_id);
-        }catch (\Exception $exception){
-            return $this->response->errorForbidden($exception->getMessage());
         }catch (AuthException $exception){
             return $this->response->errorUnauthorized($exception->getMessage());
+        }catch (\Exception $exception){
+            return $this->response->errorForbidden($exception->getMessage());
         }
         return response()->json($res);
     }