debug:修改3个判断debug的方法的位置
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { DividendModel } from './../db/Dividend';
|
||||
import { LOT_CODE_LEN, AUCTION_STAGE, AUCTION_TIME, DIVIDEND_CODE_LEN, DIVIDEND_STATUS, LOT_STATUS, MAIL_TYPE, CURRENCY_BY_TYPE, CURRENCY_TYPE, ROLE_RECEIVE_STATUS, AUCTION_BID_STATUS, DEBUG_MAGIC_WORD, AUCTION_SOURCE, TA_EVENT, getAuctionSourceTypeName, PUSH_ROUTE, GUILD_JOB } from './../consts';
|
||||
import { DividendRec, } from "../domain/dbGeneral";
|
||||
import { genCode, getRandSingleEelm, isDebugTime } from '../pubUtils/util';
|
||||
import { genCode, getRandSingleEelm } from '../pubUtils/util';
|
||||
import { LotModel, LotParam, LotType } from '../db/Lot';
|
||||
import { getCurDay, getTimeFunD, getTimeFunM, nowSeconds } from '../pubUtils/timeUtil';
|
||||
import { gameData, getGoodById } from '../pubUtils/data';
|
||||
@@ -15,6 +15,7 @@ import { RewardInter } from '../pubUtils/interface';
|
||||
import { reportTAEvent } from './sdkService';
|
||||
import { getAllServers } from './redisService';
|
||||
import { sendMessageToGuildWithSuc, sendMessageToServer, sendMessageToServerWithSuc } from './pushService';
|
||||
import { isDebugTime } from '../pubUtils/sdkUtil';
|
||||
|
||||
// ! 获取底价,假数据
|
||||
export function getBasePrice(gid: number, count: number) {
|
||||
@@ -279,7 +280,6 @@ export async function calculateDividend(dividend: DividendType) {
|
||||
const totalRatio = totalDividendRatio(participantsData);
|
||||
const dividends: DividendRec[] = participantsData.map(data => {
|
||||
const { roleId } = data;
|
||||
console.log('### calculateDividend', calcuTotalPrice, dividendRate(data), totalRatio)
|
||||
const posNum = posDividend(calcuTotalPrice, dividendRate(data), totalRatio);
|
||||
const weekendNum = weekendDividend(posNum, begin);
|
||||
return {
|
||||
|
||||
Reference in New Issue
Block a user