圣诞活动增加异步按钮
This commit is contained in:
parent
192ee578dc
commit
30de992a62
@ -3,6 +3,7 @@ import {EventFun} from '../public/event/event';
|
||||
import {PayFun} from '../public/pay';
|
||||
import {ReqSyncBtn, ResSyncBtn, syncBtnKeys} from "../shared/protocols/PtlSyncBtn";
|
||||
import {PublicShared} from '../shared/public/public';
|
||||
import {HuoDongFun} from "../public/huodongfun";
|
||||
|
||||
const defaultKeys: syncBtnKeys[] = [
|
||||
'huobanzhaomu', 'yibaichou', 'shouchong',
|
||||
@ -10,7 +11,8 @@ const defaultKeys: syncBtnKeys[] = [
|
||||
'zhanling',
|
||||
'xianshilibao',
|
||||
'xianshizhaomu',
|
||||
'G123Gift'
|
||||
'G123Gift',
|
||||
'christmas',
|
||||
|
||||
// 'kaifukuanghuan',
|
||||
// 'qiridenglu',
|
||||
@ -36,6 +38,17 @@ export default async function (call: ApiCall<ReqSyncBtn, ResSyncBtn>) {
|
||||
change[key] = data[key];
|
||||
}
|
||||
break;
|
||||
case 'christmas':
|
||||
//领完消失
|
||||
if (!data[key]) {
|
||||
let _hdList = await HuoDongFun.gethdList(call, 8)
|
||||
if (_hdList) {
|
||||
// 无此活动
|
||||
data[key] = {active: true};
|
||||
change[key] = data[key];
|
||||
}
|
||||
}
|
||||
break;
|
||||
case 'dayjijin':
|
||||
case 'dengjijijin':
|
||||
case 'guanqiajijin':
|
||||
|
@ -30,4 +30,4 @@ export type defaultSyncBtn = {
|
||||
export type syncBtnKeys = 'shouchong' | 'kaifukuanghuan' | jijinType | 'zhanling' | 'qiridenglu'
|
||||
| 'xianshilibao' | 'yibaichou' | 'huobanzhaomu' | 'xianshizhaomu'
|
||||
| 'leijichongzhi' | 'xinshoulibao' | 'jierihuodong' | 'yuedujijin' | 'zixuanlibao' | 'diaoluoduihuan' | 'chuanshuozhilu'
|
||||
| 'yangchengmubiao' | 'G123Gift'
|
||||
| 'yangchengmubiao' | 'G123Gift' | 'christmas'
|
@ -18826,6 +18826,13 @@ export const serviceProto: ServiceProto<ServiceType> = {
|
||||
"type": "Literal",
|
||||
"literal": "G123Gift"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 18,
|
||||
"type": {
|
||||
"type": "Literal",
|
||||
"literal": "christmas"
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user