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