🎨 #1572 微信支付调起支付时的nonceStr参数使用统一下单时的参数值
This commit is contained in:
@@ -281,7 +281,7 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
String timestamp = String.valueOf(System.currentTimeMillis() / 1000);
|
String timestamp = String.valueOf(System.currentTimeMillis() / 1000);
|
||||||
String nonceStr = String.valueOf(System.currentTimeMillis());
|
String nonceStr = unifiedOrderResult.getNonceStr();
|
||||||
switch (request.getTradeType()) {
|
switch (request.getTradeType()) {
|
||||||
case TradeType.MWEB: {
|
case TradeType.MWEB: {
|
||||||
return (T) new WxPayMwebOrderResult(unifiedOrderResult.getMwebUrl());
|
return (T) new WxPayMwebOrderResult(unifiedOrderResult.getMwebUrl());
|
||||||
@@ -387,7 +387,7 @@ public abstract class BaseWxPayServiceImpl implements WxPayService {
|
|||||||
|
|
||||||
Map<String, String> payInfo = new HashMap<>();
|
Map<String, String> payInfo = new HashMap<>();
|
||||||
String timestamp = String.valueOf(System.currentTimeMillis() / 1000);
|
String timestamp = String.valueOf(System.currentTimeMillis() / 1000);
|
||||||
String nonceStr = String.valueOf(System.currentTimeMillis());
|
String nonceStr = unifiedOrderResult.getNonceStr();
|
||||||
if (TradeType.NATIVE.equals(request.getTradeType())) {
|
if (TradeType.NATIVE.equals(request.getTradeType())) {
|
||||||
payInfo.put("codeUrl", unifiedOrderResult.getCodeURL());
|
payInfo.put("codeUrl", unifiedOrderResult.getCodeURL());
|
||||||
} else if (TradeType.APP.equals(request.getTradeType())) {
|
} else if (TradeType.APP.equals(request.getTradeType())) {
|
||||||
|
|||||||
Reference in New Issue
Block a user