Explorar o código

tranfer user infp

zz %!s(int64=5) %!d(string=hai) anos
pai
achega
5551001106
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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,