Browse Source

新注册用户默认没头像

lizhen_gitee 1 year ago
parent
commit
ebbb584ea0
2 changed files with 1 additions and 5 deletions
  1. 0 4
      application/common/library/Auth.php
  2. 1 1
      application/common/model/User.php

+ 0 - 4
application/common/library/Auth.php

@@ -227,8 +227,6 @@ class Auth
             'mobile'   => $mobile,
             /*'level'    => 1,
             'score'    => 0,*/
-            //'avatar'   => 	'https://meet-1251365327.cos.ap-beijing.myqcloud.com/uploads/20220314/f57ebce8a72b823912904fe76eda0909.png',
-//            'avatar' => config('site.domain_cdnurl').'/avatar.png',
             'avatar' => '',
             'introcode' => $this->getUinqueNo(8, $introcode),
         ];
@@ -307,7 +305,6 @@ class Auth
 
         $data = [
             'wechat_openid'   => $wechat_openid,
-//            'avatar' => config('site.domain_cdnurl').'/avatar.png',
             'avatar' => '',
             'introcode' => $this->getUinqueNo(8, $introcode),
             'nickname'  => $this->get_rand_nick_name(),
@@ -383,7 +380,6 @@ class Auth
 
         $data = [
             'ios_user_id'   => $ios_user_id,
-//            'avatar' => config('site.domain_cdnurl').'/avatar.png',
             'avatar' => '',
             'introcode' => $this->getUinqueNo(8, $introcode),
             'nickname'  => $this->get_rand_nick_name(),

+ 1 - 1
application/common/model/User.php

@@ -43,7 +43,7 @@ class User extends Model
         if (!$value) {
             //如果不需要启用首字母头像,请使用
             //$value = '/assets/img/avatar.png';
-            $value = letter_avatar($data['nickname']);
+            $value = '';
         }
         return $value;
     }