全局:加载json方法全部改为最新
This commit is contained in:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user