mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-07-16 16:50:43 +08:00
格式化代码
This commit is contained in:
parent
5c78a11319
commit
1efec6bc75
@ -196,10 +196,9 @@ public class WxPayServiceImpl implements WxPayService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
Map<String, String> payInfo = new HashMap<>();
|
Map<String, String> payInfo = new HashMap<>();
|
||||||
if ("NATIVE".equals(request.getTradeType()))
|
if ("NATIVE".equals(request.getTradeType())) {
|
||||||
{
|
|
||||||
payInfo.put("codeUrl", unifiedOrderResult.getCodeURL());
|
payInfo.put("codeUrl", unifiedOrderResult.getCodeURL());
|
||||||
}else if ("APP".equals(request.getTradeType())){
|
} else if ("APP".equals(request.getTradeType())) {
|
||||||
// APP支付绑定的是微信开放平台上的账号,APPID为开放平台上绑定APP后发放的参数
|
// APP支付绑定的是微信开放平台上的账号,APPID为开放平台上绑定APP后发放的参数
|
||||||
String appId = getConfig().getAppId();
|
String appId = getConfig().getAppId();
|
||||||
Map<String, String> configMap = new HashMap<>();
|
Map<String, String> configMap = new HashMap<>();
|
||||||
@ -219,7 +218,7 @@ public class WxPayServiceImpl implements WxPayService {
|
|||||||
payInfo.put("packageValue", "Sign=WXPay");
|
payInfo.put("packageValue", "Sign=WXPay");
|
||||||
payInfo.put("timeStamp", String.valueOf(System.currentTimeMillis() / 1000));
|
payInfo.put("timeStamp", String.valueOf(System.currentTimeMillis() / 1000));
|
||||||
payInfo.put("nonceStr", String.valueOf(System.currentTimeMillis()));
|
payInfo.put("nonceStr", String.valueOf(System.currentTimeMillis()));
|
||||||
}else if ("JSAPI".equals(request.getTradeType())){
|
} else if ("JSAPI".equals(request.getTradeType())) {
|
||||||
payInfo.put("appId", unifiedOrderResult.getAppid());
|
payInfo.put("appId", unifiedOrderResult.getAppid());
|
||||||
// 支付签名时间戳,注意微信jssdk中的所有使用timestamp字段均为小写。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符
|
// 支付签名时间戳,注意微信jssdk中的所有使用timestamp字段均为小写。但最新版的支付后台生成签名使用的timeStamp字段名需大写其中的S字符
|
||||||
payInfo.put("timeStamp", String.valueOf(System.currentTimeMillis() / 1000));
|
payInfo.put("timeStamp", String.valueOf(System.currentTimeMillis() / 1000));
|
||||||
|
Loading…
Reference in New Issue
Block a user