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(__('手机号未注册')); }