fix user logOff

main
wangqing 8 months ago
parent 8f953a9b84
commit 9bb0e0a171

@ -517,7 +517,15 @@ public class MyController extends BaseController {
} }
// 删除账号 // 删除账号
userInfoService.deleteById(userId); UserInfo userInfo = userInfoService.findById(userId);
userInfo.setMobile("已注销");
userInfo.setAvatar(Constants.DEFAULT_USER_AVATAR);
userInfo.setWxId("");
userInfo.setAppleId("");
userInfo.setAppleEmail("");
userInfo.setWxNickname("");
userInfoService.update(userInfo);
// userInfoService.deleteById(userId);
return Result.success(); return Result.success();
} }

Loading…
Cancel
Save