Browse Source

代码优化

wufeng 2 years ago
parent
commit
ffe19de675
1 changed files with 1 additions and 9 deletions
  1. 1 9
      app/abutment/logic/Account.php

+ 1 - 9
app/abutment/logic/Account.php

@@ -47,15 +47,6 @@ class Account
 
         if (!$rs) return json_show(1005, '更新账号token信息失败');
 
-        $info = [
-            'uid' => $res['uid'],
-            'nickname' => $res['nickname'],
-            'mobile' => $res['mobile'],
-            'email' => $res['email'],
-            'token' => $token,
-            'expire_time' => $expire_time,
-        ];
-
         return json_show(0, '登录成功', ['token' => $token, 'expire_time' => $expire_time]);
 
 
@@ -233,6 +224,7 @@ class Account
             if (!$res->isEmpty()) throw new Exception('该手机号已存在');
 
             //新增账号
+            //默认密码存在app配置文件中,由于入口在admin应用中,所以如果将配置项放在abutment/config下面是读取不到的
             $password = get_encryption_password(Config::get('app.default_password'));
             $uid = $db->insertGetId([
                 'nickname' => $param['nickname'],//姓名