diff --git a/src/controllers/chest.controller.ts b/src/controllers/chest.controller.ts index e48691b..b0cef90 100644 --- a/src/controllers/chest.controller.ts +++ b/src/controllers/chest.controller.ts @@ -346,7 +346,7 @@ class BoxController extends BaseController { chest.items = [] } items.forEach(item => { - chest.items.push(item.id) + chest.items.push(item) }) if (items.find(item => item.type === 1)) { user.inWhiteList = true diff --git a/src/models/ActivityChest.ts b/src/models/ActivityChest.ts index f51d1ae..dd0cbaf 100644 --- a/src/models/ActivityChest.ts +++ b/src/models/ActivityChest.ts @@ -68,8 +68,8 @@ export class ActivityChestClass extends BaseModule { @prop({ type: () => [Number], default: [] }) public bonusScores: number[] // 获得的额外奖励 - @prop({ type: () => [String], default: [] }) - public items: string[] + @prop({ type: mongoose.Schema.Types.Mixed, default: [] }) + public items: any public toJson() { return {