Showing
1 changed file
with
28 additions
and
0 deletions
活动展现相关逻辑.md
0 → 100644
| 1 | +### 从静态资源中获取文件:activity.json | ||
| 2 | + | ||
| 3 | + { | ||
| 4 | + "com.boxfish.teacher": { | ||
| 5 | + "activity_enable": false, | ||
| 6 | + "activity_url": "http://www.boxfish.cn", | ||
| 7 | + "activity_id": "test_teacher_id", | ||
| 8 | + "activity_name": "test", | ||
| 9 | + "is_show_once": false | ||
| 10 | + }, | ||
| 11 | + "com.boxfish.student": { | ||
| 12 | + "activity_enable": false, | ||
| 13 | + "activity_url": "http://www.boxfish.cn", | ||
| 14 | + "activity_id": "test_student_id", | ||
| 15 | + "activity_name": "test", | ||
| 16 | + "is_show_once": false | ||
| 17 | + } | ||
| 18 | + } | ||
| 19 | + | ||
| 20 | +区分为教师版和学生版。 | ||
| 21 | +activity_enable字段表示活动是否开启 | ||
| 22 | +activity_url字段表示活动链接地址 | ||
| 23 | +is_show_once字段表示是否只显示一次 | ||
| 24 | + | ||
| 25 | +用户每次启动程序时检查该配置文件,如果活动开启,则显示图片(图片与该配置文件在同级目录下) | ||
| 26 | +点击图片后,访问活动链接地址,改广告图片不再显示。 | ||
| 27 | +点击关闭后,关闭当前活动图片, | ||
| 28 | +如果is_show_once为真,则该广告图片只显示一次;否则用户在第二天(每天凌晨3:00作为一天的开始)再次启动程序时,重新显示广告图。 |
-
Please register or login to post a comment