mirror of
https://github.com/PlayEdu/PlayEdu
synced 2025-07-24 10:19:31 +08:00
增加PC首页一句话配置
This commit is contained in:
parent
d44592c773
commit
1aaf23a6da
@ -25,6 +25,7 @@ public class AppConfigCheck implements ApplicationRunner {
|
|||||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||||
setKeyName("system.name");
|
setKeyName("system.name");
|
||||||
setKeyValue("");
|
setKeyValue("");
|
||||||
|
setHelp("请输入网站名");
|
||||||
}}, new AppConfig() {{
|
}}, new AppConfig() {{
|
||||||
setName("Logo");
|
setName("Logo");
|
||||||
setSort(20);
|
setSort(20);
|
||||||
@ -37,18 +38,28 @@ public class AppConfigCheck implements ApplicationRunner {
|
|||||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||||
setKeyName("system.api_url");
|
setKeyName("system.api_url");
|
||||||
setKeyValue("");
|
setKeyValue("");
|
||||||
|
setHelp("请输入API访问地址");
|
||||||
}}, new AppConfig() {{
|
}}, new AppConfig() {{
|
||||||
setName("PC端口访问地址");
|
setName("PC端口访问地址");
|
||||||
setSort(40);
|
setSort(40);
|
||||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||||
setKeyName("system.pc_url");
|
setKeyName("system.pc_url");
|
||||||
setKeyValue("");
|
setKeyValue("");
|
||||||
|
setHelp("请输入PC端访问地址");
|
||||||
}}, new AppConfig() {{
|
}}, new AppConfig() {{
|
||||||
setName("H5端口访问地址");
|
setName("H5端口访问地址");
|
||||||
setSort(50);
|
setSort(50);
|
||||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||||
setKeyName("system.h5_url");
|
setKeyName("system.h5_url");
|
||||||
setKeyValue("");
|
setKeyValue("");
|
||||||
|
setHelp("请输入H5端访问地址");
|
||||||
|
}}, new AppConfig() {{
|
||||||
|
setName("网站页脚");
|
||||||
|
setSort(60);
|
||||||
|
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_INPUT);
|
||||||
|
setKeyName("system.pc_index_footer_msg");
|
||||||
|
setKeyValue("");
|
||||||
|
setHelp("自定义一句话显示在前台页脚");
|
||||||
}},});
|
}},});
|
||||||
// 播放配置
|
// 播放配置
|
||||||
put("播放配置", new AppConfig[]{new AppConfig() {{
|
put("播放配置", new AppConfig[]{new AppConfig() {{
|
||||||
@ -57,18 +68,21 @@ public class AppConfigCheck implements ApplicationRunner {
|
|||||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_IMAGE);
|
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_IMAGE);
|
||||||
setKeyName("player.poster");
|
setKeyName("player.poster");
|
||||||
setKeyValue("");
|
setKeyValue("");
|
||||||
|
setHelp("播放器封面在学员观看视频时默认显示");
|
||||||
}}, new AppConfig() {{
|
}}, new AppConfig() {{
|
||||||
setName("启用跑马灯");
|
setName("启用跑马灯");
|
||||||
setSort(20);
|
setSort(20);
|
||||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_SWITCH);
|
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_SWITCH);
|
||||||
setKeyName("player.is_enabled_bullet_secret");
|
setKeyName("player.is_enabled_bullet_secret");
|
||||||
setKeyValue("0");
|
setKeyValue("0");
|
||||||
|
setHelp("开启之后视频播放器将会随机显示学员信息");
|
||||||
}}, new AppConfig() {{
|
}}, new AppConfig() {{
|
||||||
setName("跑马灯内容");
|
setName("跑马灯内容");
|
||||||
setSort(30);
|
setSort(30);
|
||||||
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_TEXT);
|
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_TEXT);
|
||||||
setKeyName("player.bullet_secret_text");
|
setKeyName("player.bullet_secret_text");
|
||||||
setKeyValue("");
|
setKeyValue("");
|
||||||
|
setHelp("请配置跑马灯显示的内容模板");
|
||||||
}}, new AppConfig() {{
|
}}, new AppConfig() {{
|
||||||
setName("跑马灯颜色");
|
setName("跑马灯颜色");
|
||||||
setSort(40);
|
setSort(40);
|
||||||
|
@ -38,6 +38,13 @@ public class SystemController {
|
|||||||
data.put("system-api-url", configs.get("system.api_url"));
|
data.put("system-api-url", configs.get("system.api_url"));
|
||||||
data.put("system-pc-url", configs.get("system.pc_url"));
|
data.put("system-pc-url", configs.get("system.pc_url"));
|
||||||
data.put("system-h5-url", configs.get("system.h5_url"));
|
data.put("system-h5-url", configs.get("system.h5_url"));
|
||||||
|
data.put("system.pc_index_footer_msg", configs.get("system.pc_index_footer_msg"));
|
||||||
|
|
||||||
|
data.put("player-poster", configs.get("player.poster"));
|
||||||
|
data.put("player-is-enabled-bullet-secret", configs.get("player.is_enabled_bullet_secret"));
|
||||||
|
data.put("player-bullet-secret-text", configs.get("player.bullet_secret_text"));
|
||||||
|
data.put("player-bullet-secret-color", configs.get("player.bullet_secret_color"));
|
||||||
|
data.put("player-bullet-secret-opacity", configs.get("player.bullet_secret_opacity"));
|
||||||
|
|
||||||
return JsonResponse.data(data);
|
return JsonResponse.data(data);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user