xiaogang 4 лет назад
Родитель
Сommit
8dd080c435
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      app/Http/Controllers/Api/UserController.php

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

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