Commit 73e4349a authored by 赵啸非's avatar 赵啸非

添加应用主题

parent 611d6315
......@@ -139,7 +139,7 @@ public class MidSignApiController {
*/
@PostMapping(value = "trans")
@UnAuth
public Rest<String> trans(@RequestBody MidReq midReq) {
public Rest<JSONObject> trans(@RequestBody MidReq midReq) {
try {
Map<String, String> headerMap = new HashMap<>();
StringBuilder signSb = new StringBuilder();
......@@ -182,10 +182,10 @@ public class MidSignApiController {
//String fullUrl = URLUtil.completeUrl(midUrl, midReq.getPath());
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();
JSONObject bodyJson = JSONObject.parseObject(body);
log.info("mid resp:"+body);
return Rest.ok(body);
return Rest.ok(bodyJson);
} catch (Exception e) {
log.error("透传请求异常",e);
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