From 50d67ff66f5e9becec88360b6fe9eb101d978ae0 Mon Sep 17 00:00:00 2001 From: bayuzhen Date: Mon, 26 Aug 2024 15:55:50 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A8=A1=E6=8B=9FuKey=E7=99=BB=E5=BD=95?= =?UTF-8?q?=EF=BC=8C=E5=9C=BA=E6=99=AF=E6=B5=8B=E8=AF=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../main/java/com/bocloud/sms/service/TrxServiceImpl.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 ce5886e..0e40454 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 @@ -57,7 +57,7 @@ public class TrxServiceImpl implements TrxService { Map paramsMap = new HashMap<>(); paramsMap.put("isToken", false); paramsMap.put("ngx_cookie", ngxCookie); - JSONObject result; + JSONObject result = new JSONObject(); // try { // log.info("调用天融信获取随机字符串接口, url:" + url + ", 参数:" + JSONObject.toJSONString(paramsMap)); // result = JSONObject.parseObject(HttpUtil.get(url, paramsMap, 10000)); @@ -116,8 +116,8 @@ public class TrxServiceImpl implements TrxService { paramsMap.put("cookie", trxAuthModel.getClientHello()); paramsMap.put("certMd5", trxAuthModel.getServerHello()); paramsMap.put("client_ip", trxAuthModel.getClientIp()); - JSONObject result = null; - GeneralResult> login; + JSONObject result = new JSONObject(); + GeneralResult> login = new GeneralResult<>(); try { log.info("调用天融信登录接口, url:" + url + ", 参数:" + JSONObject.toJSONString(paramsMap)); // result = JSONObject.parseObject(HttpUtil.post(url, paramsMap, 10000));