1. 登录模块新增软key登录模块代码
parent
678c1e775d
commit
7209ab66fb
|
@ -114,7 +114,7 @@ public class TrxServiceImpl implements TrxService {
|
||||||
List<Map<String, Object>> authenList = new ArrayList<>();
|
List<Map<String, Object>> authenList = new ArrayList<>();
|
||||||
Map<String, Object> userMap = new HashMap<>();
|
Map<String, Object> userMap = new HashMap<>();
|
||||||
userMap.put("loginName", trxAuthModel.getLoginName());
|
userMap.put("loginName", trxAuthModel.getLoginName());
|
||||||
userMap.put("passwd", trxAuthModel.getPasswd());
|
userMap.put("passwd", trxAuthModel.getPassword());
|
||||||
authenList.add(userMap);
|
authenList.add(userMap);
|
||||||
|
|
||||||
Map<String, Object> md5Map = new HashMap<>();
|
Map<String, Object> md5Map = new HashMap<>();
|
||||||
|
@ -173,7 +173,7 @@ public class TrxServiceImpl implements TrxService {
|
||||||
@Override
|
@Override
|
||||||
public GeneralResult getpwdAuthen(TrxAuthModel trxAuthModel) {
|
public GeneralResult getpwdAuthen(TrxAuthModel trxAuthModel) {
|
||||||
String url = trxUrl + "/pwdAuthen";
|
String url = trxUrl + "/pwdAuthen";
|
||||||
String s1 = Sha256Util.sha256(trxAuthModel.getPasswd());
|
String s1 = Sha256Util.sha256(trxAuthModel.getPassword());
|
||||||
String rs1 = Sha256Util.sha256(trxAuthModel.getRandoms() + s1);
|
String rs1 = Sha256Util.sha256(trxAuthModel.getRandoms() + s1);
|
||||||
Map<String, Object> paramsMap = new HashMap<>();
|
Map<String, Object> paramsMap = new HashMap<>();
|
||||||
paramsMap.put("cookie", trxAuthModel.getClientHello());
|
paramsMap.put("cookie", trxAuthModel.getClientHello());
|
||||||
|
|
|
@ -5,7 +5,7 @@ import lombok.Data;
|
||||||
@Data
|
@Data
|
||||||
public class TrxAuthModel {
|
public class TrxAuthModel {
|
||||||
private String loginName;
|
private String loginName;
|
||||||
private String passwd;
|
private String password;
|
||||||
private String clientHello; // cookie
|
private String clientHello; // cookie
|
||||||
private String serverHello; // certMd5
|
private String serverHello; // certMd5
|
||||||
private String trxToken;
|
private String trxToken;
|
||||||
|
|
Loading…
Reference in New Issue