🐞 fix(gvg): 可能可以修好据点锁问题
This commit is contained in:
@@ -388,7 +388,7 @@ export const STATUS = {
|
||||
GVG_BATTLE_TEAM_LOCK: { code: 21422, simStr: '正在有玩家挑战您,请等待' },
|
||||
GVG_BATTLE_TEAM_HAS_SELLTED: { code: 21423, simStr: '该编队已驻守据点了' },
|
||||
GVG_BATTLE_TEAM_LOCK_ENTERY_CITY: { code: 21424, simStr: '正在有玩家挑战您,请稍后切换城池' },
|
||||
GVG_POINT_TYPE_ERR: { code: 21425, simStr: '改积分点不可驻守' },
|
||||
GVG_POINT_TYPE_ERR: { code: 21425, simStr: '该积分点不可驻守' },
|
||||
|
||||
// 通用 30000 - 30099
|
||||
DIC_DATA_NOT_FOUND: { code: 30000, simStr: '数据表未找到' },
|
||||
|
||||
@@ -46,9 +46,8 @@ export default class GVGCityAreaPoint extends BaseModel {
|
||||
return result;
|
||||
}
|
||||
|
||||
public static async leavePoint(configId: number, groupKey: string, pointId: number) {
|
||||
let result: GVGCityAreaPointType = await GVGCityAreaPointModel.findOneAndUpdate({ configId, groupKey, pointId }, { $set: { teamCode: '', roleId: '', roleName: '', leagueCode: '', leagueName: '' }}, { new: true }).lean();
|
||||
return result;
|
||||
public static async leavePoint(configId: number, groupKey: string, teamCode: string) {
|
||||
await GVGCityAreaPointModel.updateMany({ configId, groupKey, teamCode }, { $set: { teamCode: '', roleId: '', roleName: '', leagueCode: '', leagueName: '' }}, { new: true }).lean();
|
||||
}
|
||||
|
||||
public static async playerLeave(configId: number, groupKey: string, roleId: string) {
|
||||
|
||||
Reference in New Issue
Block a user