mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-07-25 11:19:40 +08:00
修复后台配置的学员默认头像返回bug
This commit is contained in:
parent
599d5938a7
commit
0aa3233d56
@ -40,7 +40,8 @@ import java.util.Map;
|
||||
@Slf4j
|
||||
public class SystemController {
|
||||
|
||||
@Autowired private ImageCaptchaService imageCaptchaService;
|
||||
@Autowired
|
||||
private ImageCaptchaService imageCaptchaService;
|
||||
|
||||
@GetMapping("/image-captcha")
|
||||
public JsonResponse imageCaptcha() throws IOException {
|
||||
@ -74,6 +75,8 @@ public class SystemController {
|
||||
String memberDefaultAvatar = configData.get(CConfig.MEMBER_DEFAULT_AVATAR);
|
||||
if (memberDefaultAvatar == null || memberDefaultAvatar.trim().length() == 0) {
|
||||
data.put(CConfig.MEMBER_DEFAULT_AVATAR, apiUrl + "/images/default_avatar.png");
|
||||
} else {
|
||||
data.put(CConfig.MEMBER_DEFAULT_AVATAR, memberDefaultAvatar);
|
||||
}
|
||||
|
||||
// 内置的三个线上课封面
|
||||
|
Loading…
x
Reference in New Issue
Block a user