修复后台内置三个课程封面的的url地址生成bug

This commit is contained in:
none 2023-06-12 10:26:03 +08:00
parent 82ac97dbc5
commit 5d797b286c

View File

@ -60,6 +60,10 @@ public class SystemController {
String apiUrl = configData.get(CConfig.SYSTEM_API_URL); String apiUrl = configData.get(CConfig.SYSTEM_API_URL);
if (apiUrl == null || apiUrl.trim().length() == 0) { if (apiUrl == null || apiUrl.trim().length() == 0) {
apiUrl = RequestUtil.uriWithProtocol(); apiUrl = RequestUtil.uriWithProtocol();
} else {
if (apiUrl.endsWith("/")) {
apiUrl = apiUrl.substring(0, apiUrl.length() - 1);
}
} }
HashMap<String, Object> data = new HashMap<>(); HashMap<String, Object> data = new HashMap<>();