模拟uKey登录,场景测试

develop
bayuzhen 2024-08-26 15:55:50 +08:00
parent f2f8a4adbe
commit 50d67ff66f
1 changed files with 3 additions and 3 deletions

View File

@ -57,7 +57,7 @@ public class TrxServiceImpl implements TrxService {
Map<String, Object> 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<Map<String, Object>> login;
JSONObject result = new JSONObject();
GeneralResult<Map<String, Object>> login = new GeneralResult<>();
try {
log.info("调用天融信登录接口, url:" + url + ", 参数:" + JSONObject.toJSONString(paramsMap));
// result = JSONObject.parseObject(HttpUtil.post(url, paramsMap, 10000));