From 58180865335e8b1e0dc9b0eb9c9ec0961df9e80b Mon Sep 17 00:00:00 2001 From: ztt <835303992@qq.com> Date: Sun, 24 Mar 2024 16:31:17 +0800 Subject: [PATCH] =?UTF-8?q?=E7=94=A8=E6=88=B7=E7=99=BB=E5=BD=95=E9=80=BB?= =?UTF-8?q?=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/shopro/controller/Index.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/shopro/controller/Index.php b/addons/shopro/controller/Index.php index 59aa898..09423c3 100755 --- a/addons/shopro/controller/Index.php +++ b/addons/shopro/controller/Index.php @@ -173,7 +173,9 @@ class Index extends Common $this->error(__('手机号已经被占用')); } elseif (in_array($event, ['changepwd', 'resetpwd', 'mobilelogin']) && !$userinfo) { //未注册 注册手机号 - $this->auth->register($mobile, $mobile, '', $mobile, ''); + $userAuth = new UserAuth(); + $auth = $userAuth->register(['mobile' => $mobile]); + set_token_in_header($auth->getToken()); // set_token_in_header($auth->getToken()); // $this->error(__('手机号未注册')); }