军团活动:修复没有拍卖行bug
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { Application, BackendSession, ChannelService, pinus, HandlerService, } from "pinus";
|
||||
import { getMedianCe, getGuildActivityStatus, getRecordScore, getGateActivityObj, sendSingleGateActEndMsg, participants, getGateActivityRank, getCityActivityObj } from "../../../services/guildActivityService";
|
||||
import { getMedianCe, getGuildActivityStatus, getRecordScore, getGateActivityObj, participants, getGateActivityRank, getCityActivityObj } from "../../../services/guildActivityService";
|
||||
import { resResult } from "../../../pubUtils/util";
|
||||
import { STATUS, GUILD_ACTIVITY_TYPE, GUILD_POINT_WAYS, ENEMIES_TYPE, GET_POINT_WAYS, TASK_TYPE } from "../../../consts";
|
||||
import { UserGuildActivityRecModel } from "../../../db/UserGuildActivityRec";
|
||||
@@ -177,10 +177,10 @@ export class GateActivityHandler {
|
||||
// if(!statusResult.isOpen) return resResult(STATUS.GUILD_ACTIVITY_NOT_OPEN);
|
||||
|
||||
gateHp = obj.getGateHpAndInc(guildCode, -1 * damage);
|
||||
if (gateHp <= 0) {
|
||||
// 推送 停止活动并结算奖励
|
||||
await sendSingleGateActEndMsg(guildCode, serverId);
|
||||
}
|
||||
// if (gateHp <= 0) {
|
||||
// // 推送 停止活动并结算奖励
|
||||
// await sendSingleGateActEndMsg(guildCode, serverId);
|
||||
// }
|
||||
// 推送 城门血量
|
||||
let chatSid = await getGuildChannelSid(guildCode);
|
||||
pinus.app.rpc.chat.guildRemote.pushGateHp.toServer(chatSid, guildCode, gateHp);
|
||||
|
||||
Reference in New Issue
Block a user