|
@@ -1310,8 +1310,59 @@ public class WorkServiceImpl extends ServiceImpl<WorkMapper, WorkEntity> impleme
|
|
|
|
|
|
//初始化自定义按钮
|
|
|
this.initCustomButtom(entity.getId());
|
|
|
+
|
|
|
+ //初始化开场动画设置
|
|
|
+ this.initOpenAnimation(entity.getId());
|
|
|
+
|
|
|
+ //初始化开场封面
|
|
|
+ this.initWorkCoverType(entity.getId());
|
|
|
+
|
|
|
+ //初始化自定义logo
|
|
|
+ this.initWorkLogo(entity.getId());
|
|
|
+
|
|
|
+ //初始化开场提示
|
|
|
+ this.initWorkOpeningTip(entity.getId());
|
|
|
+
|
|
|
+ }
|
|
|
+
|
|
|
+ public void initWorkOpeningTip(String workId){
|
|
|
+ WorkOpeningTipEntity entity = new WorkOpeningTipEntity();
|
|
|
+ entity.setWorkId(workId);
|
|
|
+ entity.setIsRemind(1);
|
|
|
+ entity.setRemindTime(1);
|
|
|
+ workOpeningTipService.save(entity);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void initWorkLogo(String workId){
|
|
|
+ WorkLogoEntity entity = new WorkLogoEntity();
|
|
|
+ entity.setWorkId(workId);
|
|
|
+ entity.setIsLogo(1);
|
|
|
+ workLogoService.save(entity);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void initWorkCoverType(String workId){
|
|
|
+ WorkCoverTypeEntity entity = new WorkCoverTypeEntity();
|
|
|
+ entity.setWorkId(workId);
|
|
|
+ entity.setCoverSelect("img");
|
|
|
+ entity.setCoverPcLoc("center");
|
|
|
+ entity.setCoverMoLoc("center");
|
|
|
+ entity.setCoverImgBac("colorFill");
|
|
|
+ entity.setImgColorSelec("#000000");
|
|
|
+ entity.setCoverImageInWay(1);
|
|
|
+ workCoverTypeService.save(entity);
|
|
|
+ }
|
|
|
+
|
|
|
+ public void initOpenAnimation(String workId){
|
|
|
+ WorkOpeningAnimationEntity entity = new WorkOpeningAnimationEntity();
|
|
|
+ entity.setIsShowOpeningAnimation(true);
|
|
|
+ entity.setOpeningAnimationType(1);
|
|
|
+ entity.setWorkId(workId);
|
|
|
+ workOpeningAnimationService.save(entity);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
private void initMaskData(List<WorkNavigationEntity> workNavigations) {
|
|
|
List<WorkCustomMaskEntity> list = new ArrayList<>();
|
|
|
workNavigations.stream().forEach(v -> {
|