抽卡:心愿单解锁

This commit is contained in:
luying
2022-04-27 20:55:02 +08:00
parent 8e4d88067f
commit 426341aba6
3 changed files with 10 additions and 2 deletions
@@ -103,6 +103,7 @@ export class GachaHandler {
return resResult(STATUS.SUCCESS, {
gachaId, activityId,
freeCount, refFreeTime: userGacha.refFreeTime, count: userGacha.count, point: userGacha.point, floor, hope,
guideResultCount: userGacha.guideResultCount,
// heroes: resultHeroes,
addHeros: heroes,
result: resultList
@@ -452,7 +453,7 @@ export class GachaHandler {
let gachaPull = new GachaPull(gachaId, lv, userHeroes);
let { items, heroInfo, resultList, activityData } = gachaPull.pullBySimpleResult(simpleResult);
userGacha = await UserGachaModel.updateInfo(roleId, gachaId, 0, { guideResultCount: count });
// 给东西
// console.log('****', heroInfo)
@@ -467,6 +468,8 @@ export class GachaHandler {
return resResult(STATUS.SUCCESS, {
hasInit: !!role.gachaHasGuide,
guideResultCount: userGacha.guideResultCount,
count: userGacha.count,
gachaId,
// heroes: resultHeroes,
addHeros: heroes,