修正头像11111
This commit is contained in:
parent
290e457977
commit
7997d0abe9
@ -192,8 +192,12 @@ public class UserService {
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (data.getPhoto() != null) {
|
if (data.getPhoto() != null) {
|
||||||
|
try {
|
||||||
String ossPath = UserService.handleUserImage(data.getImg_host() + data.getPhoto());
|
String ossPath = UserService.handleUserImage(data.getImg_host() + data.getPhoto());
|
||||||
user.setAvatar(ossPath);
|
user.setAvatar(ossPath);
|
||||||
|
}catch (Exception e){
|
||||||
|
// 不处理
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
userDao.updateById(user);
|
userDao.updateById(user);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user