mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-07-27 04:19:31 +08:00
修复后台配置的学员默认头像返回bug
This commit is contained in:
parent
599d5938a7
commit
0aa3233d56
@ -40,7 +40,8 @@ import java.util.Map;
|
|||||||
@Slf4j
|
@Slf4j
|
||||||
public class SystemController {
|
public class SystemController {
|
||||||
|
|
||||||
@Autowired private ImageCaptchaService imageCaptchaService;
|
@Autowired
|
||||||
|
private ImageCaptchaService imageCaptchaService;
|
||||||
|
|
||||||
@GetMapping("/image-captcha")
|
@GetMapping("/image-captcha")
|
||||||
public JsonResponse imageCaptcha() throws IOException {
|
public JsonResponse imageCaptcha() throws IOException {
|
||||||
@ -74,6 +75,8 @@ public class SystemController {
|
|||||||
String memberDefaultAvatar = configData.get(CConfig.MEMBER_DEFAULT_AVATAR);
|
String memberDefaultAvatar = configData.get(CConfig.MEMBER_DEFAULT_AVATAR);
|
||||||
if (memberDefaultAvatar == null || memberDefaultAvatar.trim().length() == 0) {
|
if (memberDefaultAvatar == null || memberDefaultAvatar.trim().length() == 0) {
|
||||||
data.put(CConfig.MEMBER_DEFAULT_AVATAR, apiUrl + "/images/default_avatar.png");
|
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