Skip to content

Commit 15622a4

Browse files
committed
fix: 修改微信V3支付参数,增加 APPID 返回。
1 parent 8dd0601 commit 15622a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

WePayV3/Order.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public function create($type, $data)
6666
$nonceStr = Tools::createNoncestr();
6767
if ($type === self::WXPAY_APP) {
6868
$sign = $this->signBuild(join("\n", [$appid, $time, $nonceStr, $result['prepay_id'], '']));
69-
return ['partnerId' => $this->config['mch_id'], 'prepayId' => $result['prepay_id'], 'package' => 'Sign=WXPay', 'nonceStr' => $nonceStr, 'timeStamp' => $time, 'sign' => $sign];
69+
return ['appId' => $appid, 'partnerId' => $this->config['mch_id'], 'prepayId' => $result['prepay_id'], 'package' => 'Sign=WXPay', 'nonceStr' => $nonceStr, 'timeStamp' => $time, 'sign' => $sign];
7070
} elseif ($type === self::WXPAY_JSAPI) {
7171
$sign = $this->signBuild(join("\n", [$appid, $time, $nonceStr, "prepay_id={$result['prepay_id']}", '']));
7272
return ['appId' => $appid, 'timestamp' => $time, 'timeStamp' => $time, 'nonceStr' => $nonceStr, 'package' => "prepay_id={$result['prepay_id']}", 'signType' => 'RSA', 'paySign' => $sign];

0 commit comments

Comments
 (0)