Skip to content

Commit

Permalink
微信支付bug:JSAPI支付必须传openid
Browse files Browse the repository at this point in the history
  • Loading branch information
fancyecommerce committed Jun 17, 2020
1 parent 69192d0 commit ca85263
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/appinstall/modules/Database/views/config/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,5 @@
placeholder="Mysql数据库密码">
</div>

<button type="submit" class="btn btn-default">提交</button>
<button type="submit" class="btn btn-default">下一步</button>
</form>
2 changes: 1 addition & 1 deletion services/payment/WxpayMicro.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit ca85263

Please sign in to comment.