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'=>'操作成功']);
     }