军团活动:修复城池时间状态
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user