手机号返回加密

This commit is contained in:
cwchen 2025-07-10 14:47:13 +08:00
parent 4a183bcedc
commit e2b9fd811c
2 changed files with 9 additions and 2 deletions

View File

@ -55,6 +55,9 @@ public class UserController {
PageHelper.startPage(data.getData().getPage(), data.getData().getLimit());
try {
List<SysUser> list = userService.list(data.getData());
for (SysUser user : list) {
user.setLoginName(AESCBCUtils.encrypt(user.getLoginName()));
}
PageInfo<SysUser> pageInfo = new PageInfo<>(list);
return ServerResponse.createSuccessPage(pageInfo,data.getData().getPage(),data.getData().getLimit());
} catch (Exception e) {

View File

@ -44,7 +44,6 @@ function pages(pageNum, pageSize, typeNum) {
let url = dataUrl + "/users/getList"
ajaxRequest(url, "POST", params, true, function () {
}, function (result) {
console.log(result);
if (result.code === 200) {
if (result.data) {
initTable(result.data, result.limit, result.curr)
@ -97,7 +96,12 @@ function initTable(dataList, limit, page) {
return (page - 1) * limit + d.LAY_INDEX;
}
},
{field: "loginName", title: "登录账号", unresize: true, align: "center"},
{field: "loginName", title: "登录账号", unresize: true, align: "center",
templet: function (d) {
if(d.loginName){
return decryptCBC(d.loginName);
}
}},
{field: "username", title: "姓名", unresize: true, align: "center"},
/*{field: "sex", title: "", unresize: true, align: "center",
templet: function (d) {