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[] /** * 单次活动题目数量