From 5596f1d2f5205aac9c12499ee708284cadbf0c42 Mon Sep 17 00:00:00 2001 From: zhl Date: Tue, 11 May 2021 12:10:00 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E5=87=A0=E4=B8=AAmodule?= =?UTF-8?q?=E7=9A=84=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/controllers/puzzle.controller.ts | 1 - src/models/match/PuzzleSession.ts | 2 +- src/models/shop/Shop.ts | 2 +- src/models/shop/ShopActivity.ts | 2 +- 4 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/api/controllers/puzzle.controller.ts b/src/api/controllers/puzzle.controller.ts index 4ca5bc5..acf35ff 100644 --- a/src/api/controllers/puzzle.controller.ts +++ b/src/api/controllers/puzzle.controller.ts @@ -31,7 +31,6 @@ import { isObjectId } from '../../utils/string.util' class PuzzleController extends BaseController { - //TODO:: 增加字段, 表明该次是普通开局还是降低难度开局 @role('anon') @router('post /api/:accountid/puzzle/list') async list(req, res) { diff --git a/src/models/match/PuzzleSession.ts b/src/models/match/PuzzleSession.ts index 1cc5d7d..27a9f72 100644 --- a/src/models/match/PuzzleSession.ts +++ b/src/models/match/PuzzleSession.ts @@ -125,7 +125,7 @@ export class PuzzleSessionClass extends BaseModule { * 已选择的题库分类 * @type {string[]} */ - @prop() + @prop({ type: () => [String] }) public qtypes: string[] /** * 开始时间 diff --git a/src/models/shop/Shop.ts b/src/models/shop/Shop.ts index e5c0824..bd2a4da 100644 --- a/src/models/shop/Shop.ts +++ b/src/models/shop/Shop.ts @@ -106,7 +106,7 @@ class ShopClass extends BaseModule { * 已选择的题库分类 * @type {string[]} */ - @prop() + @prop({ type: () => [String] }) public qtypes: string[] diff --git a/src/models/shop/ShopActivity.ts b/src/models/shop/ShopActivity.ts index 5e25ec1..c372669 100644 --- a/src/models/shop/ShopActivity.ts +++ b/src/models/shop/ShopActivity.ts @@ -49,7 +49,7 @@ export class ShopActivityClass extends BaseModule { * 已选择的题库分类 * @type {string[]} */ - @prop() + @prop({ type: () => [String] }) public qtypes: string[] /** * 单次活动题目数量