记得上下班打卡 | git大法好,push需谨慎

Commit 1711f9b8 authored by jiangxiulong's avatar jiangxiulong

refund headers

parent 585dae3e
......@@ -434,11 +434,15 @@ public class KylinRefundsStatusServiceImpl {
// sign = MD5.getStrMD5(sign);
sign = sign.toUpperCase();
params.add("sign", sign);*/
MultiValueMap<String, String> headers = new LinkedMultiValueMap();
headers.add("Content-Type", "application/json;charset=UTF-8");
headers.add("Accept", "application/json;charset=UTF-8");
log.info("退款参数" + JsonUtils.toJson(params));
log.info("退款headers参数" + JsonUtils.toJson(headers));
// 请求pay
String postResult = null;
try {
postResult = HttpUtil.post(applyUrl, params);
postResult = HttpUtil.post(applyUrl, params, headers);
log.info("退款res" + postResult);
HashMap hashMapResult = JsonUtils.fromJson(postResult, HashMap.class);
Boolean success = (Boolean) hashMapResult.get("success");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment