|
@@ -99,18 +99,18 @@ public class AccountServiceImpl extends ServiceImpl<IAccountMapper, Account> imp
|
|
|
String password = PasswordUtils.decycptPasswordWeb(Base64Converter.encode(param.getPassword()));
|
|
|
param.setPassword(password);
|
|
|
Result<FdkkLoginVo> fdkkLoginVo = fdKKClient.fdkkLogin(param);
|
|
|
- SaLoginModel saLoginModel = new SaLoginModel();
|
|
|
- saLoginModel
|
|
|
- .setIsLastingCookie(false)
|
|
|
- .setToken(fdkkLoginVo.getData().getToken());
|
|
|
+// SaLoginModel saLoginModel = new SaLoginModel();
|
|
|
+// saLoginModel
|
|
|
+// .setIsLastingCookie(false)
|
|
|
+// .setToken(fdkkLoginVo.getData().getToken());
|
|
|
FdkkLoginVo data = fdkkLoginVo.getData();
|
|
|
Account account = this.findByUserName(data.getUser().getUserName(), data.getUser().getId(), data.getUser().getHead());
|
|
|
if(Objects.nonNull(account)){
|
|
|
UserAuthInfo userAuthInfo = userAuthService.findByUserIdCreateIfNotExits(account.getId(), account.getUserId());
|
|
|
data.setAppKey(userAuthInfo.getAppKey());
|
|
|
}
|
|
|
- StpUtil.login(account.getUserName(), saLoginModel);
|
|
|
- StpUtil.getSession().set("user", account);
|
|
|
+// StpUtil.login(account.getUserName(), saLoginModel);
|
|
|
+// StpUtil.getSession().set("user", account);
|
|
|
return ResultData.ok(data.getAppKey());
|
|
|
}
|
|
|
|