修改playerCe为通用方法
This commit is contained in:
@@ -1,5 +1,7 @@
|
||||
import { Service } from 'egg';
|
||||
import { resResult as pubResult } from '../pubUtils/util';
|
||||
import { calPlayerCeAndSave } from 'app/pubUtils/playerCe';
|
||||
import { HeroType } from '@db/Hero';
|
||||
const csprng = require('csprng');
|
||||
/**
|
||||
* Utils Service
|
||||
@@ -39,4 +41,9 @@ export default class Utils extends Service {
|
||||
public resResult(status: {code: number, simStr: string}, data?, customMsg?: string) {
|
||||
return pubResult(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