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

+ 4 - 4
app/Http/Controllers/Api/UserController.php

xqd xqd xqd
@@ -411,7 +411,7 @@ class UserController extends Controller
         }catch (\Exception $exception){
             return $this->response->errorForbidden($exception->getMessage());
         }
-        return response()->json(['message'=>'操作成功','data'=>$res]);
+        return response()->json($res);
     }
 
     /**
@@ -425,7 +425,7 @@ class UserController extends Controller
         }catch (\Exception $exception){
             return $this->response->errorForbidden($exception->getMessage());
         }
-        return response()->json(['message'=>'操作成功','data'=>$res]);
+        return response()->json($res);
     }
 
     /**
@@ -436,13 +436,13 @@ class UserController extends Controller
     public function receive_day(){
         DB::beginTransaction();
         try {
-            $res=$this->userService->receive_day();
+            $this->userService->receive_day();
             DB::commit();
         }catch (\Exception $exception){
             DB::rollBack();
             return $this->response->errorForbidden($exception->getMessage());
         }
-        return response()->json(['message'=>'操作成功','data'=>$res]);
+        return response()->json(['message'=>'操作成功']);
     }