diff --git a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/TrxServiceImpl.java b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/TrxServiceImpl.java index c5a8896..4286128 100644 --- a/bocloud.sms.service/src/main/java/com/bocloud/sms/service/TrxServiceImpl.java +++ b/bocloud.sms.service/src/main/java/com/bocloud/sms/service/TrxServiceImpl.java @@ -114,8 +114,12 @@ public class TrxServiceImpl implements TrxService { JSONObject result = new JSONObject(); GeneralResult> login = new GeneralResult<>(); try { - log.info("调用天融信登录接口, url:" + url + ", 参数:" + JSONObject.toJSONString(paramsMap)); - result = JSONObject.parseObject(HttpUtil.post(url, paramsMap, 10000)); + HttpRequest httpRequest = HttpRequest.post("http://your_backend_url/trx/userAuthen") + .header("isToken", "false") + .body(JSONObject.toJSONString(paramsMap)); + log.info("调用天融信获取随机字符串接口, 请求信息:" + JSONObject.toJSONString(httpRequest)); + HttpResponse response = httpRequest.execute(); + result = JSONObject.parseObject(response.body()); if (!"0".equals(result.getString("result"))) { return new GeneralResult(false, "用户登录天融信失败" + result.getString("errmsg")); }