会员脱敏处理,之前有人恶意联系注册用户。

管理平台用户返回VO格式化一下
This commit is contained in:
Chopper
2022-02-15 11:24:52 +08:00
parent ea5da365c7
commit fda3b5b1cc
6 changed files with 29 additions and 3 deletions

View File

@@ -45,9 +45,9 @@ public class MemberManagerController {
@ApiOperation(value = "通过ID获取会员信息")
@ApiImplicitParam(name = "id", value = "会员ID", required = true, dataType = "String", paramType = "path")
@GetMapping(value = "/{id}")
public ResultMessage<Member> get(@PathVariable String id) {
public ResultMessage<MemberVO> get(@PathVariable String id) {
return ResultUtil.data(memberService.getById(id));
return ResultUtil.data(memberService.getMember(id));
}
@ApiOperation(value = "添加会员")

View File

@@ -182,6 +182,11 @@ jasypt:
lili:
system:
isDemoSite: true
# 脱敏级别:
# 0不做脱敏处理
# 1管理端用户手机号等信息脱敏
# 2商家端信息脱敏为2时表示管理端商家端同时脱敏
sensitiveLevel: 1
statistics:
# 在线人数统计 X 小时。这里设置48即统计过去48小时每小时在线人数
onlineMember: 48