修改util为公共地址

This commit is contained in:
luying
2020-10-16 14:54:28 +08:00
parent 73a30b6eb0
commit bd6646c6fe
21 changed files with 56 additions and 51 deletions

View File

@@ -5,8 +5,8 @@ import { HANG_UP_CONSTS } from './../consts/consts';
import { BattleRecordModel } from './../db/BattleRecord';
import { TowerRecordModel } from './../db/TowerRecord';
import { RoleModel } from './../db/Role';
import { getHeroInfoById, getJobInfoById, getTowerDataByLv } from "../util/gamedata"
import { decodeArrayStr, shouldRefresh } from '../util/util';
import { getHeroInfoById, getJobInfoById, getTowerDataByLv } from "../pubUtils/gamedata"
import { decodeArrayStr, shouldRefresh } from '../pubUtils/util';
import { handleFixedReward } from './rewardService';
export async function checkTowerWar(roleId: string, battleId: number, heroes: Array<number>) {

View File

@@ -3,7 +3,7 @@
*/
import { DailyRecordModel } from '../db/DailyRecord';
import { getGamedata } from '../util/gamedata';
import { getGamedata } from '../pubUtils/gamedata';
// 检查每日本次数checkBattle使用
export async function checkDaily(roleId: string, battleId: number, inc: number) {

View File

@@ -1,8 +1,8 @@
import { Application, FrontendOrBackendSession } from 'pinus';
import { getGamedata } from '../util/gamedata';
import { getGamedata } from '../pubUtils/gamedata';
import { EventRecordModel } from '../db/EventRecord';
import { RoleModel } from '../db/Role';
import { genCode, decodeStrSingle, decodeStr } from '../util/util';
import { genCode, decodeStrSingle, decodeStr } from '../pubUtils/util';
import { EVENT_STATUS, EVENT_RECORD_STATUS, EVENT_TYPE } from '../consts/consts';

View File

@@ -2,8 +2,8 @@
import { ExpeditionPointModel } from '../db/ExpeditionPoint';
import { RoleModel } from '../db/Role';
import { getWarJsons, getGamedata } from '../util/gamedata';
import { decodeStr } from '../util/util';
import { getWarJsons, getGamedata } from '../pubUtils/gamedata';
import { decodeStr } from '../pubUtils/util';
import { WAR_JSON_ATTRIBUTE_TYPE } from '../consts/consts';

View File

@@ -1,8 +1,8 @@
import { GOOD_TYPE } from './../consts/consts';
import { EquipModel } from './../db/Equip';
import { CounterModel } from './../db/Counter';
import { decodeStr } from '../util/util';
import { getGoodById } from '../util/gamedata';
import { decodeStr } from '../pubUtils/util';
import { getGoodById } from '../pubUtils/gamedata';
export async function handleFixedReward(roleId: string, roleName: string, rewardStr: string, multi: number) {
let reward = decodeStr('fixReward', rewardStr);

View File

@@ -4,8 +4,8 @@
*/
import { BattleDropModel } from '../db/BattleDrop';
import { getWarById } from '../util/gamedata';
import { decodeStr } from '../util/util';
import { getWarById } from '../pubUtils/gamedata';
import { decodeStr } from '../pubUtils/util';
import { BATTLE_REWARD_TYPE } from '../consts/consts';
import { handleReward } from './rewardService';