军团活动:修复城池时间状态

This commit is contained in:
luying
2021-03-31 10:30:48 +08:00
parent 0d7a873a34
commit e487d07bfd
3 changed files with 12 additions and 4 deletions
@@ -546,6 +546,8 @@ export function getCityStatus(guildCode: string, cityId: number, dic: DicCityAct
let startDay = openDay[curIndex - 1]||0;
let endDay = openDay[openDay.length - 1]||0;
if(d >= startDay && d <= endDay) status = CITY_STATUS.CAN_DECLARE;
if(d == startDay && activityStatus.status != GUILD_ACTIVITY_STATUS.END) status = CITY_STATUS.NOT_OPEN;
if(d == endDay && activityStatus.status == GUILD_ACTIVITY_STATUS.END) status = CITY_STATUS.NOT_OPEN;
let curCity = dbCities.find(cur => cur.cityId == cityId);
if(curCity) {