Commit 90c1a24c authored by 赵啸非's avatar 赵啸非

添加应用主题

parent 73e4349a
...@@ -139,7 +139,7 @@ public class MidSignApiController { ...@@ -139,7 +139,7 @@ public class MidSignApiController {
*/ */
@PostMapping(value = "trans") @PostMapping(value = "trans")
@UnAuth @UnAuth
public Rest<JSONObject> trans(@RequestBody MidReq midReq) { public Rest<String> trans(@RequestBody MidReq midReq) {
try { try {
Map<String, String> headerMap = new HashMap<>(); Map<String, String> headerMap = new HashMap<>();
StringBuilder signSb = new StringBuilder(); StringBuilder signSb = new StringBuilder();
...@@ -183,9 +183,9 @@ public class MidSignApiController { ...@@ -183,9 +183,9 @@ public class MidSignApiController {
log.info("mid url:{},body:{}",fullUrl,headerMap.get("body")); log.info("mid url:{},body:{}",fullUrl,headerMap.get("body"));
String body = HttpUtil.createRequest(Method.POST, fullUrl).headerMap(headerMap, true).body(headerMap.get("body")).execute().body(); String body = HttpUtil.createRequest(Method.POST, fullUrl).headerMap(headerMap, true).body(headerMap.get("body")).execute().body();
JSONObject bodyJson = JSONObject.parseObject(body); JSONObject bodyJson = JSONObject.parseObject(body);
log.info("mid resp:"+body); log.info("mid resp:"+bodyJson.toJSONString());
return Rest.ok(bodyJson); return Rest.ok(bodyJson.toJSONString());
} catch (Exception e) { } catch (Exception e) {
log.error("透传请求异常",e); log.error("透传请求异常",e);
return Rest.fail("透传请求异常!"); return Rest.fail("透传请求异常!");
......
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