修正头像11111

This commit is contained in:
wucongxing8150 2025-07-30 13:54:45 +08:00
parent 290e457977
commit 7997d0abe9

View File

@ -192,8 +192,12 @@ public class UserService {
}
if (data.getPhoto() != null) {
String ossPath = UserService.handleUserImage(data.getImg_host() + data.getPhoto());
user.setAvatar(ossPath);
try {
String ossPath = UserService.handleUserImage(data.getImg_host() + data.getPhoto());
user.setAvatar(ossPath);
}catch (Exception e){
// 不处理
}
}
userDao.updateById(user);