From 69378f3d6be45d941a683d5e5ffeda811a1d507d Mon Sep 17 00:00:00 2001 From: zhl Date: Wed, 3 Feb 2021 20:01:12 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=8B=E4=BB=B6=E4=B8=8A=E6=8A=A5=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E5=A2=9E=E5=8A=A0id=E7=9A=84=E6=A3=80=E6=9F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/controllers/ActivityController.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/controllers/ActivityController.ts b/src/controllers/ActivityController.ts index 640ff6c..52f51ab 100644 --- a/src/controllers/ActivityController.ts +++ b/src/controllers/ActivityController.ts @@ -6,12 +6,14 @@ import { ZError } from '../common/ZError' import { ItemInfo } from '../logic/ItemDef' import ItemCtrl from '../logic/ItemCtrl' import { BagItem } from '../models/BagItem' +import assert from 'assert' export default class ActivityController extends BaseController { @router('post /api/:accountid/update_event') async generalEvent(req: any) { let { id,accountid } = req.params + assert(id, 'id requiresd') let cfgMap = global.$cfg.get(BaseConst.INCOME) id = +id if (!cfgMap.has(id)) {