Browse Source

fix: 微信手机号登录

super-yimizi 2 months ago
parent
commit
a9ecac39dd
1 changed files with 2 additions and 2 deletions
  1. 2 2
      application/api/controller/Login.php

+ 2 - 2
application/api/controller/Login.php

@@ -270,11 +270,11 @@ class Login extends Base
         $code = $this->request->post("code");
         $logincode = $this->request->post("logincode");
         $bind = $this->request->post("bind");
-        $data = (new \addons\shop\library\Wechat\Service())->getWechatMobile($code);
+        $data = (new \app\common\library\Wechat\Service())->getWechatMobile($code);
         if ($data) {
             $mobile = $data['phoneNumber'];
             //获取openid和unionid
-            $json = (new \addons\shop\library\Wechat\Service())->getWechatSession($logincode);
+            $json = (new \app\common\library\Wechat\Service())->getWechatSession($logincode);
             $openid = $json['openid'] ?? '';
             $unionid = $json['unionid'] ?? '';