抽卡:提供内部接口

This commit is contained in:
luying
2021-04-23 20:48:03 +08:00
parent 5c24e28d06
commit 2df7a9f1a0
4 changed files with 37 additions and 24 deletions
@@ -320,7 +320,6 @@ export async function createHeroes(roleId: string, roleName: string, sid: string
let newHeroInfo: CreateHeroParam[] = [], pieces: ItemInter[] = [];
for(let h of heroInfo) {
console.log('*****', JSON.stringify([...userHeroesMap]), h.hid)
if(userHeroesMap.has(h.hid)) {
let {pieceId, count} = transPiece(h.hid);
pieces.push({ id: pieceId, count });