Commit 6f3b88d9f1ee59b7a9d8ac4c20ea8dab3ce37f2b

Authored by 云中非
1 parent f2642223

refactor: 用户不存返回异常信息

... ... @@ -56,7 +56,7 @@ public class YtThirdPlatformServiceImpl extends AbstractBaseService<YtThirdPlatf
56 56 public YtThirdUserDTO saveOrUpdate(YtThirdUserDTO videoDTO) {
57 57 User user = userMapper.selectById(videoDTO.getAppUserId());
58 58 if(user == null){
59   -
  59 + throw new YtDataValidationException(ErrorMessage.USER_NOT_EXISTS.getMessage());
60 60 }
61 61 if(StringUtils.isEmpty(user.getAvatar()) && StringUtils.isNotEmpty(videoDTO.getAvatarUrl())){
62 62 user.setAvatar(videoDTO.getAvatarUrl());
... ...