修改playerCe为通用方法
This commit is contained in:
@@ -1,6 +1,8 @@
|
||||
import { Service } from 'egg';
|
||||
import * as pubUtils from '../pubUtils/util';
|
||||
import * as pubGamedata from '../pubUtils/gamedata'
|
||||
import { HeroType } from '@db/Hero';
|
||||
import { calPlayerCeAndSave } from '@pubUtils/playerCe';
|
||||
const csprng = require('csprng');
|
||||
|
||||
/**
|
||||
@@ -46,4 +48,8 @@ export default class Utils extends Service {
|
||||
public resResult(status: {code: number, simStr: string}, data?, customMsg?: string) {
|
||||
return pubUtils.resResult(status, data, customMsg);
|
||||
}
|
||||
|
||||
public calPlayerCeAndSave(roleId: string, heros: HeroType[], type: number, args: number[]) {
|
||||
return calPlayerCeAndSave(roleId, heros, type, args)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user