抽卡:修复重复创建userGacha表

This commit is contained in:
luying
2021-04-27 11:56:37 +08:00
parent 329645143a
commit 957eda3955
2 changed files with 5 additions and 5 deletions

View File

@@ -252,7 +252,7 @@ export class GachaHandler {
* @memberof GachaHandler
*/
async setPickHero(msg: { gachaId: number, activityId: number, pickHero: number }, session: BackendSession) {
const { gachaId, activityId, pickHero } = msg;
const { gachaId, activityId = 0, pickHero } = msg;
const roleId: string = session.get('roleId');
if (gachaId != GACHA_ID.ASSIGN && gachaId != GACHA_ID.TIMELIMIT)
return resResult(STATUS.WRONG_PARMS);