添加:开屏广告支持视频

This commit is contained in:
wuhui_zzw 2023-12-13 15:05:25 +08:00
parent a792145f60
commit ff1fa5d79b
2 changed files with 8 additions and 2 deletions

View File

@ -68,7 +68,7 @@ class VisualConfig extends BaseController
$group = $groupRepository->getWhere(['group_key' => $key]);
$data = app()->make(GroupDataRepository::class)->getGroupDataLst($this->request->merId(),$group->group_id,$page, $limit);
if ($key == 'open_screen_advertising') {
$data['config'] = systemConfig(['open_screen_switch','open_screen_time','open_screen_space']);
$data['config'] = systemConfig(['open_screen_switch','open_screen_time','open_screen_space','open_screen_type','open_screen_video']);
}
return app('json')->success($data);
}

View File

@ -552,7 +552,13 @@ class Common extends BaseController
$key = ['open_screen_advertising'];
$group = app()->make(GroupRepository::class)->getSearch([])->where('group_key','in',$key)->find();
$data= app()->make(GroupDataRepository::class)->getGroupDataLst($this->request->merId(),$group->group_id,1, 10);
$data['config'] = systemConfig(['open_screen_switch','open_screen_time','open_screen_space']);
$data['config'] = systemConfig(['open_screen_switch','open_screen_time','open_screen_space','open_screen_type','open_screen_video']);
if($data['config']['open_screen_type'] == 1){
$data['type'] = 'video';
$data['video_link'] = $data['config']['open_screen_video'] ?? '';
}
return app('json')->success($data);
}
}