物品:获取装备上限

This commit is contained in:
luying
2021-08-02 20:47:49 +08:00
parent abb74b9e6b
commit 2e961691b5
14 changed files with 315 additions and 222 deletions
-10
View File
@@ -1,7 +1,5 @@
import { Service } from 'egg';
import { addBags, addEquips } from '@pubUtils/itemUtils';
import * as pubUtils from '@pubUtils/util';
import { BagInter, EquipInter } from '@pubUtils/interface';
const csprng = require('csprng');
/**
@@ -25,14 +23,6 @@ export default class Utils extends Service {
return pubUtils.resResult(status, data, customMsg);
}
public addBags(roleId: string, roleName: string, data: BagInter) {
return addBags(roleId, roleName, data);
}
public addEquips(roleId: string, roleName: string, weapon: EquipInter) {
return addEquips(roleId, roleName, weapon);
}
public checkActivityData(data: any, type: number) {
return { data, type }
}