fix:圣诞活动修改异步按钮逻辑

This commit is contained in:
yushunrui 2023-12-20 18:56:40 +08:00
parent 1e46f70cd9
commit e71c562e08

View File

@ -39,15 +39,14 @@ export default async function (call: ApiCall<ReqSyncBtn, ResSyncBtn>) {
} }
break; break;
case 'christmas': case 'christmas':
//领完消失 //领完消失
if (!data[key]) { change[key] = {active: false};
let _hdList = await HuoDongFun.gethdList(call, 8) let _hdList = await HuoDongFun.gethdList(call, 8)
if (_hdList) { if (_hdList) {
// 无此活动 // 无此活动
data[key] = {active: true}; data[key] = {active: true};
change[key] = data[key]; change[key] = data[key];
} }
}
break; break;
case 'dayjijin': case 'dayjijin':
case 'dengjijijin': case 'dengjijijin':