added: 禁止拖拽播放配置

This commit is contained in:
none 2023-05-30 16:04:38 +08:00
parent ac809ff3bb
commit 2ad4105ea7
2 changed files with 10 additions and 0 deletions

View File

@ -154,6 +154,15 @@ public class AppConfigCheck implements ApplicationRunner {
setKeyValue("1");
}
},
new AppConfig() {
{
setName("禁止拖拽播放");
setSort(60);
setFieldType(BackendConstant.APP_CONFIG_FIELD_TYPE_SWITCH);
setKeyName("player.disabled_drag");
setKeyValue("0");
}
},
});
put(
"学员配置",

View File

@ -61,6 +61,7 @@ public class SystemController {
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"));
data.put("player-disabled-drag", configs.get("player.disabled_drag"));
return JsonResponse.data(data);
}