活动:添加开服内多少天隐藏某活动

This commit is contained in:
luying
2022-04-01 20:36:09 +08:00
parent a99bdae492
commit 0bb5fad55b
4 changed files with 18 additions and 5 deletions

View File

@@ -217,6 +217,9 @@ export async function getActivity(serverId: number, roleId: string, guildCode: s
break;
}
}
if(activityData && activityData.canShow && !activityData.canShow()) {
return null
}
return activityData;
}