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