🐞 fix(gvg): 添加农田重复种植提示

This commit is contained in:
luying
2023-02-07 19:13:30 +08:00
parent e79d79062f
commit 0b877150ea
2 changed files with 2 additions and 0 deletions

View File

@@ -177,6 +177,7 @@ export class GVGProduceHandler {
for(let field of fields) {
if(!field) return resResult(STATUS.GVG_FIELD_NOT_FOUND);
if(field.lockRoleId != roleId && field.unlockTime > nowSeconds()) return resResult(STATUS.GVG_FIELD_HAS_LOCKED);
if(field.lockRoleId == roleId && field.harvestTime > 0) return resResult(STATUS.GVG_FIELD_HAS_PLANT);
}
const cities = await getGVGCities(myLeague);