修正头像11111
This commit is contained in:
parent
290e457977
commit
7997d0abe9
@ -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);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user