Commit fd48787e by 章家宝

用户偏好,编辑人采用真实姓名

1 parent af314451
...@@ -69,7 +69,7 @@ public class AccountPreferenceController { ...@@ -69,7 +69,7 @@ public class AccountPreferenceController {
@PostMapping("/update") @PostMapping("/update")
public boolean updateById(@RequestBody AccountPreferenceSaveOrUpdateDTO updateDTO, Authentication authentication) { public boolean updateById(@RequestBody AccountPreferenceSaveOrUpdateDTO updateDTO, Authentication authentication) {
User user = (User) authentication.getPrincipal(); User user = (User) authentication.getPrincipal();
String userName = user.getUserName(); String userName = user.getRealName();
if (StringUtils.isBlank(updateDTO.getCityCn())) { if (StringUtils.isBlank(updateDTO.getCityCn())) {
updateDTO.setCityCn(" "); updateDTO.setCityCn(" ");
} }
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!