feat(聊天): 添加ur武将广播

This commit is contained in:
luying
2022-11-29 11:35:50 +08:00
parent 5a77779fe7
commit 4731ca7e44
6 changed files with 25 additions and 11 deletions

View File

@@ -15,6 +15,7 @@ import { RoleModel, RoleType, RoleUpdate } from "../../db/Role";
import { sendMessageToUserWithSuc } from "../pushService";
import { checkTaskInCreateHero } from "../task/taskService";
import { filterHeroes } from "../dataService";
import { pushGetHero } from "../sysChatService";
/**
* 创建多个武将
@@ -71,6 +72,7 @@ import { filterHeroes } from "../dataService";
for(let hero of heroes) {
showHeroes.push(new HeroShowParam(hero));
resultHeroes.push(hero);
pushGetHero(roleId, roleName, serverId, hero);
}
await SkinModel.insertSkins(roleId, roleName, skins);