|
@@ -73,9 +73,9 @@ public class WxProviderServiceImpl implements WxProviderService {
|
|
|
sceneInfoMap.put("device_id", "127.0.0.1");
|
|
|
params.put("scene_info", sceneInfoMap);
|
|
|
String paramsStr = JSON.toJSONString(params);
|
|
|
- log.info("请求参数 ===> {}" + paramsStr);
|
|
|
+ log.info("请求参数 ===> {}", paramsStr);
|
|
|
String url = wechatPayServiceConfig.getBaseUrl().concat(CombinePayUrlEnum.PAY_TRANSACTIONS.getType().concat("jsapi"));
|
|
|
- log.info("请求地址 ===> {}" + url);
|
|
|
+ log.info("请求地址 ===> {}", url);
|
|
|
String resStr = wechatHttpPost(url, paramsStr);
|
|
|
Map<String, Object> resMap = JSONObject.parseObject(resStr, new TypeReference<Map<String, Object>>() {
|
|
|
});
|
|
@@ -179,7 +179,7 @@ public class WxProviderServiceImpl implements WxProviderService {
|
|
|
params.put("sub_mchid", wechatPayServiceConfig.getSubAppId());
|
|
|
String outRefundNo = OrderUtils.getOrderNo("TK");
|
|
|
log.info("退款申请号:{}", outRefundNo);
|
|
|
- params.put("out_refund_no", outRefundNo + "");
|
|
|
+ params.put("out_refund_no", outRefundNo);
|
|
|
params.put("reason", "申请退款");
|
|
|
params.put("notify_url", wechatPayServiceConfig.getRefundNotifyUrl());
|
|
|
Map<String, Object> amountMap = new HashMap<>();
|
|
@@ -190,7 +190,7 @@ public class WxProviderServiceImpl implements WxProviderService {
|
|
|
amountMap.put("currency", "CNY");
|
|
|
params.put("amount", amountMap);
|
|
|
String paramsStr = JSON.toJSONString(params);
|
|
|
- log.info("请求参数 ===> {}" + paramsStr);
|
|
|
+ log.info("请求参数 ===> {}", paramsStr);
|
|
|
String res;
|
|
|
try {
|
|
|
res = wechatHttpPost(url, paramsStr);
|