Commit c31eb5e2 by fengshuonan

修改默认的头像

parent 7d2a5e66
......@@ -126,8 +126,12 @@ public class SystemController extends BaseController {
avatar = DefaultAvatar.BASE_64_AVATAR;
} else {
FileInfo fileInfo = fileInfoService.selectById(avatar);
if(fileInfo == null){
avatar = DefaultAvatar.BASE_64_AVATAR;
}else{
avatar = fileInfo.getFileData();
}
}
//输出图片的文件流
try {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment