| 123456789101112131415161718192021222324 |
- const { ccclass } = cc._decorator;
- @ccclass
- export default class WarnTipData {
- //当前状态 0-无处理;1-警告;2-封广告30分钟;3-封广告12小时;4-用户拉黑
- curSolution = 0;
- tipArr = ['',
- '<b>您点击广告太频繁了,请降低点击广告频率以免被封!</b>',
- '<b>您点击广告太频繁了,封禁广告30分钟!</b>',
- '<b>您点击广告太频繁了,封禁广告12小时!</b>',
- '<b>系统检测到您的账号存在异常,禁止登陆游戏!</b>']
- setSolution(solution) {
- if (this.curSolution != solution) {
- this.curSolution = solution;
- mk.storage.setStorage('solution', this.curSolution);
- }
- if (this.curSolution >= 1) {
- mk.ui.openPanel('module/warnTip/WarnTipPanel');
- }
- }
- }
|