战力:补充数据结构

This commit is contained in:
陆莹
2022-03-25 20:10:07 +08:00
parent 1bdace30f9
commit 68e4d2232d
4 changed files with 376 additions and 118 deletions

View File

@@ -23,7 +23,7 @@ import { getInitHeroById } from "../roleService";
import { addItems, combineFigureInfo, unlockFigure, unlockFigureWithoutSave } from "./rewardService";
import { gameData } from "../../pubUtils/data";
import { CalCe } from "./calCe";
import { RoleCeUpdate } from "../../db/RoleCe";
import RoleCe, { RoleCeModel, RoleCeUpdate } from "../../db/RoleCe";
export class CreateHeroes {
private roleId: string;
@@ -102,6 +102,8 @@ export class CreateHeroes {
// 更新role表
role = await RoleModel.incRoleInfo(this.roleId, { heroNum: this.incHeroNum, ce: this.incRoleCe }, { heroNumUpdatedAt: nowSeconds(), });
this.setRole(role);
// 更新roleCe表
await RoleCeModel.updateRoleCe(this.roleId, this.roleCe);
// 更新皮肤表
await SkinModel.insertSkins(this.roleId, this.roleName, this.skins)
// 更新guild表