抽卡:次数返回
This commit is contained in:
@@ -123,9 +123,9 @@ export class GachaHandler {
|
|||||||
let { heroes } = await createHeroes(roleId, roleName, sid, serverId, funcs, heroInfo);
|
let { heroes } = await createHeroes(roleId, roleName, sid, serverId, funcs, heroInfo);
|
||||||
await addItems(roleId, roleName, sid, items);
|
await addItems(roleId, roleName, sid, items);
|
||||||
// 更新数据
|
// 更新数据
|
||||||
point = Math.floor((historyCount + 1)/RECRUIT.RECRUIT_BONUS);
|
point = Math.floor((historyCount + count)/RECRUIT.RECRUIT_BONUS);
|
||||||
userGacha = await UserGachaModel.updateInfo(roleId, gachaId, activityId, {
|
userGacha = await UserGachaModel.updateInfo(roleId, gachaId, activityId, {
|
||||||
freeCount, hope, floor, count: historyCount + 1, point
|
freeCount, hope, floor, count: historyCount + count, point
|
||||||
});
|
});
|
||||||
|
|
||||||
await UserGachaRecModel.createRec(roleId, gachaId, activityId, count, resultList);
|
await UserGachaRecModel.createRec(roleId, gachaId, activityId, count, resultList);
|
||||||
@@ -139,7 +139,7 @@ export class GachaHandler {
|
|||||||
}
|
}
|
||||||
return resResult(STATUS.SUCCESS, {
|
return resResult(STATUS.SUCCESS, {
|
||||||
gachaId, activityId,
|
gachaId, activityId,
|
||||||
freeCount, refFreeTime: resultRefFreeTime, count, point, floor, hope,
|
freeCount, refFreeTime: resultRefFreeTime, count: userGacha.count, point, floor, hope,
|
||||||
heroes, result: resultList
|
heroes, result: resultList
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
@@ -240,7 +240,7 @@ export class GachaHandler {
|
|||||||
point: userGacha.point,
|
point: userGacha.point,
|
||||||
turntable: userGacha.turntable,
|
turntable: userGacha.turntable,
|
||||||
result: resultList,
|
result: resultList,
|
||||||
heroes, goods
|
heroes
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user