(节日活动): 接口校验
This commit is contained in:
@@ -21,7 +21,7 @@ export class DragonBoatHandler {
|
||||
* @param {BackendSession} session
|
||||
* @memberof DragonBoatHandler
|
||||
*/
|
||||
async getDragonBoatActivity(msg: { activityId: number }, session: BackendSession) {
|
||||
async getData(msg: { activityId: number }, session: BackendSession) {
|
||||
const { activityId } = msg;
|
||||
const roleId = session.get('roleId');
|
||||
const serverId = session.get('serverId');
|
||||
|
||||
@@ -127,6 +127,7 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
case 'activity.bindPhoneHandler.receiveReward':
|
||||
case 'activity.bindPhoneHandler.receiveGiftCode':
|
||||
case 'activity.bindPhoneHandler.skipOutSide':
|
||||
case 'activity.dragonBoatHandler.getData':
|
||||
{
|
||||
if(!checkNaturalNumbers(msg.activityId)) return false;
|
||||
break;
|
||||
@@ -2003,6 +2004,17 @@ export function checkRouteParam(route: string, msg: any) {
|
||||
if(!isBoolean(msg.hasComment)) return false;
|
||||
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.popUpShopHandler.debugPushPopUpShop':
|
||||
case 'activity.popUpShopHandler.debugPushPopUpInterval':
|
||||
|
||||
Reference in New Issue
Block a user