修改天融信登录接口传参
parent
f403b6c66d
commit
c6619e68a4
|
@ -85,8 +85,32 @@ public class TrxServiceImpl implements TrxService {
|
||||||
String url = trxUrl + "/userAuthen";
|
String url = trxUrl + "/userAuthen";
|
||||||
Map<String, Object> paramsMap = new HashMap<>();
|
Map<String, Object> paramsMap = new HashMap<>();
|
||||||
paramsMap.put("cookie", trxAuthModel.getClientHello());
|
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();
|
JSONObject result = new JSONObject();
|
||||||
GeneralResult<Map<String, Object>> login = new GeneralResult<>();
|
GeneralResult<Map<String, Object>> login = new GeneralResult<>();
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -4,8 +4,10 @@ import lombok.Data;
|
||||||
|
|
||||||
@Data
|
@Data
|
||||||
public class TrxAuthModel {
|
public class TrxAuthModel {
|
||||||
private String clientHello;
|
private String loginName;
|
||||||
private String serverHello;
|
private String passwd;
|
||||||
|
private String clientHello; // cookie
|
||||||
|
private String serverHello; // certMd5
|
||||||
private String trxToken;
|
private String trxToken;
|
||||||
private String clientIp;
|
private String clientIp;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue