修改增加每日次数的 debug 接口
This commit is contained in:
@@ -65,6 +65,7 @@ export class DailyBattleHandler {
|
|||||||
}
|
}
|
||||||
let roleId = session.get('roleId');
|
let roleId = session.get('roleId');
|
||||||
await DailyRecordModel.increseBuyCount(roleId, type, 1);
|
await DailyRecordModel.increseBuyCount(roleId, type, 1);
|
||||||
|
await DailyRecordModel.increseDailyCount(roleId, type, -1); // 减次数,避免超出每日购买最大次数
|
||||||
return resResult(STATUS.SUCCESS);
|
return resResult(STATUS.SUCCESS);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user