gq 7 năm trước cách đây
mục cha
commit
e05315d5f9
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      server/app/Http/Controllers/Api/V1/DreamController.php

+ 1 - 1
server/app/Http/Controllers/Api/V1/DreamController.php

xqd
@@ -197,7 +197,7 @@ class DreamController extends Controller
         $user = $this->getUser();
         if (!empty($request->input('dream_user_id'))) {
 //            查看梦想后 最新最新梦想为0
-            UserCareUser::where('user_id',$user->id)->where('other_user_id',$request->input('dream_user_id'))->update(['dream_id'=>0]);
+            UserCareUser::where('user_id',$user->id)->where('other_user_id',$request->input('dream_user_id'))->update(['dream_id'=>0,'dream_number'=>0]);
         }
         $type = $request->type;    //类型
         $id = $request->id;    //梦想ID