军团活动:修改诸侯混战城门血量计算公式
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import { ACTIVITY_TYPE, CURRENCY_BY_TYPE, CURRENCY_TYPE, HERO_SYSTEM_TYPE, LOG_TYPE } from "../consts";
|
||||
import { RoleModel, RoleType, RoleUpdate } from "../db/Role";
|
||||
import { UserLogModel } from "../db/UserLog";
|
||||
import { UserLogModel, GateHpLog, BossHpLog } from "../db/UserLog";
|
||||
import { UserOrderModelType } from "../db/UserOrder";
|
||||
import { Figure } from "../domain/dbGeneral";
|
||||
import { MailParam } from "../domain/roleField/mail";
|
||||
@@ -109,4 +109,20 @@ export async function saveMailLog(session: any, mails: MailParam[]) {
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
|
||||
export async function saveGuildGateHpLog(serverId: number, cityId: number, log: GateHpLog) {
|
||||
try {
|
||||
await UserLogModel.createRecord({ type: LOG_TYPE.GATE_HP, serverId, cityId, gateHp: log });
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
|
||||
export async function saveGuildBossHpLog(serverId: number, warId: number, guildCode: string, log: BossHpLog) {
|
||||
try {
|
||||
await UserLogModel.createRecord({ type: LOG_TYPE.BOSS_HP, serverId, warId, guildCode, bossHp: log });
|
||||
} catch (e) {
|
||||
console.error(e);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user