全局:加载json方法全部改为最新

This commit is contained in:
luying
2021-05-06 20:25:05 +08:00
parent 2ef00e8179
commit 0315269387
36 changed files with 401 additions and 920 deletions
-20
View File
@@ -1,7 +1,6 @@
import { Service } from 'egg';
import { addSkins, addBags, addEquips } from '@pubUtils/itemUtils';
import * as pubUtils from '@pubUtils/util';
import * as pubGamedata from '@pubUtils/gamedata'
import { BagInter, EquipInter } from '@pubUtils/interface';
const csprng = require('csprng');
@@ -22,25 +21,6 @@ export default class Utils extends Service {
return pubUtils.genCode(len)
}
public getGamedata(key: string) {
return pubGamedata.getGamedata(key);
}
public getHeroById(hid: number) {
return pubGamedata.getHeroInfoById(hid);
}
public getWarById(warid: number) {
return pubGamedata.getWarById(warid);
}
public getGoodById(gid: number) {
return pubGamedata.getGoodById(gid);
}
public getExpByLv(lv: number) {
return pubGamedata.getExpByLv(lv);
}
public resResult(status: {code: number, simStr: string}, data?, customMsg?: string) {
return pubUtils.resResult(status, data, customMsg);
}