修改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,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)
}
}