From ca85263a39f4ddca6c9c6f0b732b1c4c0d1e8756 Mon Sep 17 00:00:00 2001 From: Terry <2358269014@qq.com> Date: Wed, 17 Jun 2020 09:23:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=94=AF=E4=BB=98bug?= =?UTF-8?q?=EF=BC=9AJSAPI=E6=94=AF=E4=BB=98=E5=BF=85=E9=A1=BB=E4=BC=A0open?= =?UTF-8?q?id?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/appinstall/modules/Database/views/config/index.php | 2 +- services/payment/WxpayMicro.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/appinstall/modules/Database/views/config/index.php b/app/appinstall/modules/Database/views/config/index.php index 93eabfc58..1173eb8e6 100644 --- a/app/appinstall/modules/Database/views/config/index.php +++ b/app/appinstall/modules/Database/views/config/index.php @@ -42,5 +42,5 @@ placeholder="Mysql数据库密码"> - + diff --git a/services/payment/WxpayMicro.php b/services/payment/WxpayMicro.php index 9a49d94f2..9977e23e8 100644 --- a/services/payment/WxpayMicro.php +++ b/services/payment/WxpayMicro.php @@ -170,7 +170,7 @@ public function getScanCodeStart() //①、获取用户openid $tools = new \JsApiPay(); $identity = Yii::$app->user->identity; - $openId = $identity->wx_openid; + $openId = $identity->wx_micro_openid; //②、统一下单 $input = new \WxPayUnifiedOrder(); $notify_url = Yii::$service->url->getUrl("payment/wxpayjsapi/ipn"); ////获取支付配置中的返回ipn url