Skip to content

Commit bb509f1

Browse files
authored
[更新]兼容APP支付模式
1 parent da09111 commit bb509f1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Wechat/WechatPay.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ public function getPrepayId($openid, $body, $out_trade_no, $total_fee, $notify_u
190190
if (false === $this->_parseResult($result)) {
191191
return false;
192192
}
193-
return ($trade_type === 'JSAPI') ? $result['prepay_id'] : $result['code_url'];
193+
return in_array($trade_type, array('JSAPI', 'APP')) ? $result['prepay_id'] : $result['code_url'];
194194
}
195195

196196
/**

0 commit comments

Comments
 (0)