(节日活动): 接口校验

This commit is contained in:
luying
2023-05-23 19:58:53 +08:00
parent 48eb31d55b
commit 6543d74555
2 changed files with 13 additions and 1 deletions
@@ -21,7 +21,7 @@ export class DragonBoatHandler {
* @param {BackendSession} session * @param {BackendSession} session
* @memberof DragonBoatHandler * @memberof DragonBoatHandler
*/ */
async getDragonBoatActivity(msg: { activityId: number }, session: BackendSession) { async getData(msg: { activityId: number }, session: BackendSession) {
const { activityId } = msg; const { activityId } = msg;
const roleId = session.get('roleId'); const roleId = session.get('roleId');
const serverId = session.get('serverId'); const serverId = session.get('serverId');
+12
View File
@@ -127,6 +127,7 @@ export function checkRouteParam(route: string, msg: any) {
case 'activity.bindPhoneHandler.receiveReward': case 'activity.bindPhoneHandler.receiveReward':
case 'activity.bindPhoneHandler.receiveGiftCode': case 'activity.bindPhoneHandler.receiveGiftCode':
case 'activity.bindPhoneHandler.skipOutSide': case 'activity.bindPhoneHandler.skipOutSide':
case 'activity.dragonBoatHandler.getData':
{ {
if(!checkNaturalNumbers(msg.activityId)) return false; if(!checkNaturalNumbers(msg.activityId)) return false;
break; break;
@@ -2003,6 +2004,17 @@ export function checkRouteParam(route: string, msg: any) {
if(!isBoolean(msg.hasComment)) return false; if(!isBoolean(msg.hasComment)) return false;
break; break;
} }
case 'activity.dragonBoatHandler.gameStart':
case 'activity.dragonBoatHandler.gameEnd':
{
if(!checkNaturalNumbers(msg.activityId, msg.id)) return false;
break;
}
case 'activity.dragonBoatHandler.buyCnt':
{
if(!checkNaturalNumbers(msg.activityId, msg.count)) return false;
break;
}
case 'activity.activityHandler.debugActivityMemory': case 'activity.activityHandler.debugActivityMemory':
case 'activity.popUpShopHandler.debugPushPopUpShop': case 'activity.popUpShopHandler.debugPushPopUpShop':
case 'activity.popUpShopHandler.debugPushPopUpInterval': case 'activity.popUpShopHandler.debugPushPopUpInterval':