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