xiaogang 4 tahun lalu
induk
melakukan
4a0f5f6c2f
1 mengubah file dengan 2 tambahan dan 2 penghapusan
  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);
     }