军团:修改个人功勋→个人活跃

This commit is contained in:
luying
2021-01-25 09:43:03 +08:00
parent bb2f17089e
commit c4a106745b
11 changed files with 130 additions and 53 deletions
-4
View File
@@ -28,10 +28,6 @@ export async function addSkins(roleId: string, id: number) {
export async function addBags(roleId: string, roleName: string, data: BagInter) {
let { id, count, itemName, type, hid } = data;
let item = await ItemModel.increaseItem(roleId, id, count, { roleId, roleName, itemName, id, type, hid });
if(item.id == CURRENCY_BY_TYPE.get(CURRENCY_TYPE.HONOUR) ) {
await UserGuildModel.addHonourWeekly(roleId, count);
}
return { id: item.id, count: item.count };
}