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

develop
admin 2024-11-01 21:16:29 +08:00
parent 7209ab66fb
commit a236810516
1 changed files with 3 additions and 0 deletions

View File

@ -174,7 +174,10 @@ public class TrxServiceImpl implements TrxService {
public GeneralResult getpwdAuthen(TrxAuthModel trxAuthModel) {
String url = trxUrl + "/pwdAuthen";
String s1 = Sha256Util.sha256(trxAuthModel.getPassword());
log.info("密码s1 sha256值:" + s1);
String rs1 = Sha256Util.sha256(trxAuthModel.getRandoms() + s1);
log.info("密码rs1 sha256值:" + rs1);
Map<String, Object> paramsMap = new HashMap<>();
paramsMap.put("cookie", trxAuthModel.getClientHello());
paramsMap.put("confusn_pwd", rs1);