🐞 fix(gvg): 农庄特殊加成格子

This commit is contained in:
luying
2023-02-20 20:05:36 +08:00
parent 06e0edfa37
commit 7b8a53d338
2 changed files with 2 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ export default class GVGLeagueFarm extends BaseModel {
}
public static async releaseLock(configId: number, leagueCode: string, farmId: number, roleId: string) {
await GVGLeagueFarmModel.updateMany({ configId, leagueCode, farmId, lockRoleId: roleId, index: 0 }, { $set: { unlockTime: 0, lockRoleId: '', lockRoleName: '' } });
await GVGLeagueFarmModel.updateMany({ configId, leagueCode, farmId, lockRoleId: roleId, index: 0 }, { $set: { unlockTime: 0, lockRoleId: '', lockRoleName: '', addType: 0 }, $pull: { addTypes: { roleId } } });
}
public static async lockMineOrForestry(configId: number, leagueCode: string, farmId: number, type: number, roleId: string, fieldId: number, itemId: number) {