121708259@qq.com 3 éve
szülő
commit
5dde6a07f8
1 módosított fájl, 1 hozzáadás és 1 törlés
  1. 1 1
      app/Services/HomeService.php

+ 1 - 1
app/Services/HomeService.php

xqd
@@ -301,7 +301,7 @@ class HomeService
             throw new Exception("该用户已被拉黑");
         }
 
-        UserBlacklistModel::query()->create(['user_id'=>$user->id,'black_id'=>$param['user_id'],'atime'=>date("Y-m-d H:i:s")]);
+        UserBlacklistModel::query()->create(['user_id'=>$user->id,'black_id'=>$touser->id,'atime'=>date("Y-m-d H:i:s")]);
 
         return true;
     }