WIN-2308041133\Administrator 2 months ago
parent
commit
b09b51af49
1 changed files with 1 additions and 2 deletions
  1. 1 2
      app/controller/admin/user/User.php

+ 1 - 2
app/controller/admin/user/User.php

@@ -1072,9 +1072,8 @@ class User extends BaseController
     public function changeUser($uid){
         $user_data = \app\common\model\user\User::where('uid',$uid)->where('status',1)->find();
         if (!empty($user_data)){
-            $moto_user = \app\common\model\user\User::where('nickname',$user_data['nickname'])->where('status',1)->find();
+            $moto_user = \app\common\model\user\User::where('nickname',$user_data['nickname'])->where('uid','<',82)->where('status',1)->find();
             if (!empty($moto_user)){
-
                 \app\common\model\user\User::where('uid',$uid)->update([
                     'now_money'=>$moto_user['now_money'],
                     'brokerage_price'=>$moto_user['brokerage_price'],