mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-06-24 21:32:43 +08:00
学员身份证号打码返回
This commit is contained in:
parent
7702d92dc8
commit
334010bfb2
@ -13,6 +13,7 @@ import xyz.playedu.api.exception.ServiceException;
|
|||||||
import xyz.playedu.api.request.frontend.ChangePasswordRequest;
|
import xyz.playedu.api.request.frontend.ChangePasswordRequest;
|
||||||
import xyz.playedu.api.service.*;
|
import xyz.playedu.api.service.*;
|
||||||
import xyz.playedu.api.types.JsonResponse;
|
import xyz.playedu.api.types.JsonResponse;
|
||||||
|
import xyz.playedu.api.util.PrivacyUtil;
|
||||||
|
|
||||||
import java.util.*;
|
import java.util.*;
|
||||||
import java.util.stream.Collectors;
|
import java.util.stream.Collectors;
|
||||||
@ -49,6 +50,10 @@ public class UserController {
|
|||||||
User user = FCtx.getUser();
|
User user = FCtx.getUser();
|
||||||
List<Department> departments = departmentService.listByIds(userService.getDepIdsByUserId(user.getId()));
|
List<Department> departments = departmentService.listByIds(userService.getDepIdsByUserId(user.getId()));
|
||||||
|
|
||||||
|
if (user.getIdCard() != null && user.getIdCard().length() > 0) {
|
||||||
|
user.setIdCard(PrivacyUtil.hideIDCard(user.getIdCard()));
|
||||||
|
}
|
||||||
|
|
||||||
HashMap<String, Object> data = new HashMap<>();
|
HashMap<String, Object> data = new HashMap<>();
|
||||||
data.put("user", user);
|
data.put("user", user);
|
||||||
data.put("departments", departments);
|
data.put("departments", departments);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user