ZxcZxc123 1 рік тому
батько
коміт
d89549e5f9
1 змінених файлів з 4 додано та 4 видалено
  1. 4 4
      app/models/user/User.php

+ 4 - 4
app/models/user/User.php

@@ -298,8 +298,8 @@ class User extends BaseModel
         }
         if ($userInfo->spread_uid) {
             $data = [
-//                'nickname' => $wechatUser['nickname'] ?: '',
-//                'avatar' => $wechatUser['headimgurl'] ?: '',
+                'nickname' => $wechatUser['nickname'] ?: '',
+                'avatar' => $wechatUser['headimgurl'] ?: '',
                 'is_promoter' => $status ? 1 : $userInfo->is_promoter,
                 'login_type' => isset($wechatUser['login_type']) ? $wechatUser['login_type'] : $userInfo->login_type,
             ];
@@ -308,8 +308,8 @@ class User extends BaseModel
             return self::edit($data, $uid, 'uid');
         } else {
             $data = [
-//                'nickname' => $wechatUser['nickname'] ?: '',
-//                'avatar' => $wechatUser['headimgurl'] ?: '',
+                'nickname' => $wechatUser['nickname'] ?: '',
+                'avatar' => $wechatUser['headimgurl'] ?: '',
                 'is_promoter' => $status ? 1 : $userInfo->is_promoter,
                 'login_type' => isset($wechatUser['login_type']) ? $wechatUser['login_type'] : $userInfo->login_type,
 //                'spread_uid' => 0,