Browse Source

tranfer user infp

zz 5 years ago
parent
commit
5551001106
1 changed files with 6 additions and 0 deletions
  1. 6 0
      app/Modules/User/Services/UserService.php

+ 6 - 0
app/Modules/User/Services/UserService.php

@@ -525,6 +525,12 @@ WHERE u.openid in (SELECT openid from users WHERE  id = %s)";
 
         $to_user->balance += $from_user->balance;
         $to_user->reward_balance +=   $from_user->balance;
+        $to_user->nickname = $from_user->nickname;
+        $to_user->sex = $from_user->sex;
+        $to_user->head_img = $from_user->head_img;
+        $to_user->country = $from_user->country;
+        $to_user->city = $from_user->city;
+        $to_user->province = $from_user->province;
         $to_user->save();
         DB::table('crm_transfer')->insert([
             'from_uid'=>$from,