修改开箱记录中item的数据结构
This commit is contained in:
parent
4dc6dc1c6a
commit
97f8d8f92c
@ -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
|
||||
|
@ -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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user