后台:军团活动debug
This commit is contained in:
@@ -3,7 +3,7 @@ import { LOT_CODE_LEN, AUCTION_STAGE, AUCTION_TIME, DIVIDEND_CODE_LEN, DIVIDEND_
|
||||
import { DividendRec, ItemReward } from "../domain/dbGeneral";
|
||||
import { genCode } from '../pubUtils/util';
|
||||
import { LotModel, LotParam } from '../db/Lot';
|
||||
import { getTimeFunD } from '../pubUtils/timeUtil';
|
||||
import { getCurDay, getTimeFunD, getTimeFunM } from '../pubUtils/timeUtil';
|
||||
import { gameData, getGoodById } from '../pubUtils/data';
|
||||
import { DividendParam, DividendType } from '../db/Dividend';
|
||||
import { sendMailByContent } from './mailService';
|
||||
@@ -13,6 +13,7 @@ import { Member } from '../domain/battleField/guildActivity';
|
||||
import * as dicParam from '../pubUtils/dicParam';
|
||||
import { RewardInter } from '../pubUtils/interface';
|
||||
import { errlogger } from '../util/logger';
|
||||
import { pushCurrentTime } from './chatService';
|
||||
|
||||
// ! 获取底价,假数据
|
||||
export function getBasePrice(gid: number, count: number) {
|
||||
@@ -228,6 +229,13 @@ export async function startGuildAuction() {
|
||||
const begin = todayGuildBegin();
|
||||
await LotModel.updateLotsStageByBegin(begin, AUCTION_STAGE.GUILD);
|
||||
await DividendModel.updateDividendsStatus(begin, DIVIDEND_STATUS.ING);
|
||||
|
||||
if(dicParam.SERVER_DEBUG_MODE.CURRENT_TIME == 1) {
|
||||
let day = getCurDay();
|
||||
let time = <number>getTimeFunM().getTimeWithWeek(day, 20, 20, 0);
|
||||
await pushCurrentTime(time);
|
||||
}
|
||||
|
||||
return true;
|
||||
} catch (e) {
|
||||
console.error('startGuildAuction err: ', e);
|
||||
@@ -242,6 +250,12 @@ export async function startWorldAuction() {
|
||||
await LotModel.setLotSoldByBegin(begin);
|
||||
await LotModel.updateUnSoldLotsStageByBegin(begin, AUCTION_STAGE.WORLD);
|
||||
await DividendModel.updateDividendsStatus(begin, DIVIDEND_STATUS.END);
|
||||
|
||||
if(dicParam.SERVER_DEBUG_MODE.CURRENT_TIME == 1) {
|
||||
let day = getCurDay();
|
||||
let time = <number>getTimeFunM().getTimeWithWeek(day, 20, 40, 0);
|
||||
await pushCurrentTime(time);
|
||||
}
|
||||
return true;
|
||||
} catch (e) {
|
||||
console.error('startWorldAuction err: ', e);
|
||||
@@ -255,6 +269,12 @@ export async function stopAuction() {
|
||||
const begin = todayGuildBegin();
|
||||
await LotModel.setLotSoldByBegin(begin);
|
||||
await LotModel.updateLotsStageByBegin(begin, AUCTION_STAGE.END);
|
||||
|
||||
if(dicParam.SERVER_DEBUG_MODE.CURRENT_TIME == 1) {
|
||||
let day = getCurDay();
|
||||
let time = <number>getTimeFunM().getTimeWithWeek(day, 22, 0, 0);
|
||||
await pushCurrentTime(time);
|
||||
}
|
||||
return true;
|
||||
} catch (e) {
|
||||
console.error('stopAuction err: ', e);
|
||||
|
||||
Reference in New Issue
Block a user