1. 登录模块新增软key登录模块代码

develop
admin 2024-10-31 19:29:17 +08:00
parent 678c1e775d
commit 7209ab66fb
2 changed files with 3 additions and 3 deletions

View File

@ -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());

View File

@ -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;