修改天融信登录接口传参

develop
bayuzhen 2024-08-28 22:32:26 +08:00
parent f403b6c66d
commit c6619e68a4
2 changed files with 30 additions and 4 deletions

View File

@ -85,8 +85,32 @@ public class TrxServiceImpl implements TrxService {
String url = trxUrl + "/userAuthen";
Map<String, Object> paramsMap = new HashMap<>();
paramsMap.put("cookie", trxAuthModel.getClientHello());
paramsMap.put("certMd5", trxAuthModel.getServerHello());
paramsMap.put("client_ip", trxAuthModel.getClientIp());
List<Map<String, Object>> authen = new ArrayList<>();
Map<String, Object> userMap = new HashMap<>();
userMap.put("loginName", trxAuthModel.getLoginName());
userMap.put("passwd", trxAuthModel.getPasswd());
authen.add(userMap);
Map<String, Object> md5Map = new HashMap<>();
md5Map.put("certMd5", trxAuthModel.getServerHello());
md5Map.put("value", "");
md5Map.put("hashType", "");
authen.add(md5Map);
Map<String, Object> passcodeMap = new HashMap<>();
passcodeMap.put("passcode", "");
authen.add(passcodeMap);
Map<String, Object> dfCodeMap = new HashMap<>();
dfCodeMap.put("df_code", "");
authen.add(dfCodeMap);
Map<String, Object> ipMap = new HashMap<>();
ipMap.put("client_ip", trxAuthModel.getClientIp());
authen.add(ipMap);
paramsMap.put("Authen", authen);
JSONObject result = new JSONObject();
GeneralResult<Map<String, Object>> login = new GeneralResult<>();
try {

View File

@ -4,8 +4,10 @@ import lombok.Data;
@Data
public class TrxAuthModel {
private String clientHello;
private String serverHello;
private String loginName;
private String passwd;
private String clientHello; // cookie
private String serverHello; // certMd5
private String trxToken;
private String clientIp;
}