Update WxMpServiceImpl.java

增加getJSSDKPayInfo返回字段code_url,用于微信扫码支付生成二维码图片使用
This commit is contained in:
fxdfxq 2016-03-21 12:53:37 +08:00
parent ce554bfeb4
commit 4979a16ae7

View File

@ -866,6 +866,7 @@ public class WxMpServiceImpl implements WxMpService {
payInfo.put("nonceStr", System.currentTimeMillis() + "");
payInfo.put("package", "prepay_id=" + prepayId);
payInfo.put("signType", "MD5");
payInfo.put("code_url",wxMpPrepayIdResult.getCode_url());
String finalSign = WxCryptUtil.createSign(payInfo, wxMpConfigStorage.getPartnerKey());
payInfo.put("paySign", finalSign);