15954078560 2 years ago
parent
commit
dbc5a69877
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/common/library/Auth.php

+ 2 - 2
application/common/library/Auth.php

@@ -161,7 +161,7 @@ class Auth
             'mobile'   => $mobile,
             'level'    => 1,
             'score'    => 0,
-            'avatar'   => '',
+            'avatar'   => config('logo'),
         ];
         $params = array_merge($data, [
             'nickname'  => preg_match("/^1[3-9]{1}\d{9}$/",$username) ? substr_replace($username,'****',3,4) : $username,
@@ -171,7 +171,7 @@ class Auth
             'logintime' => $time,
             'loginip'   => $ip,
             'prevtime'  => $time,
-            'status'    => 'normal'
+            'status'    => 1
         ]);
         $params['password'] = $this->getEncryptPassword($password, $params['salt']);
         $params = array_merge($params, $extend);