Skip to content

Commit 4979a16

Browse files
committed
Update WxMpServiceImpl.java
增加getJSSDKPayInfo返回字段code_url,用于微信扫码支付生成二维码图片使用
1 parent ce554bf commit 4979a16

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/WxMpServiceImpl.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,6 +866,7 @@ public Map<String, String> getJSSDKPayInfo(Map<String, String> parameters) throw
866866
payInfo.put("nonceStr", System.currentTimeMillis() + "");
867867
payInfo.put("package", "prepay_id=" + prepayId);
868868
payInfo.put("signType", "MD5");
869+
payInfo.put("code_url",wxMpPrepayIdResult.getCode_url());
869870

870871
String finalSign = WxCryptUtil.createSign(payInfo, wxMpConfigStorage.getPartnerKey());
871872
payInfo.put("paySign", finalSign);

0 commit comments

Comments
 (0)