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,