代码提交

This commit is contained in:
liang.chao 2025-09-30 16:23:19 +08:00
parent 34f7a77722
commit 491fef6ed1
1 changed files with 8 additions and 5 deletions

View File

@ -3,6 +3,8 @@ package com.bonus.web.controller.system;
import java.util.Date; import java.util.Date;
import java.util.List; import java.util.List;
import java.util.Set; import java.util.Set;
import com.bonus.common.utils.encryption.Sm4Utils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping; import org.springframework.web.bind.annotation.PostMapping;
@ -87,6 +89,7 @@ public class SysLoginController
tokenService.refreshToken(loginUser); tokenService.refreshToken(loginUser);
} }
AjaxResult ajax = AjaxResult.success(); AjaxResult ajax = AjaxResult.success();
user.setPhonenumber(Sm4Utils.decrypt(user.getPhonenumber()));
user.setPassword(""); user.setPassword("");
ajax.put("user", user); ajax.put("user", user);
ajax.put("roles", roles); ajax.put("roles", roles);