修改playerCe为通用方法

This commit is contained in:
luying
2020-12-17 12:03:00 +08:00
parent 5e39c09f7c
commit b79157b5c9
6 changed files with 43 additions and 12 deletions

View File

@@ -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)
}
}