抽卡:添加拜访武将
This commit is contained in:
@@ -327,6 +327,8 @@ export const STATUS = {
|
||||
GACHA_HOPE_NOT_GOLD: { code: 31103, simStr: '武将品质错误' },
|
||||
GACHA_CAN_NOT_PICK: { code: 31004, simStr: '不可选择该武将' },
|
||||
GACHA_TURNTABLE_POINT_NOT_ENOUGH: { code: 31005, simStr: '转盘积分不足' },
|
||||
GACHA_HAS_VISITED: { code: 31006, simStr: '该武将已拜访过' },
|
||||
GACHA_VISITED_COUNT_OVER: { code: 31007, simStr: '今天武将拜访已超过次数' },
|
||||
// 社交相关状态 40000 - 49999
|
||||
SYS_CHANNEL_AUTH_NOT_ENOUGH: { code: 40000, simStr: '无法在系统频道发送消息' },
|
||||
UPDATE_PRIVATE_MSG_READ_TIME_ERR: { code: 40001, simStr: '更新私聊阅读时间失败' },
|
||||
|
||||
@@ -78,6 +78,12 @@ export default class UserGacha extends BaseModel {
|
||||
@prop({ required: true, default: 0 })
|
||||
pickHero: number; // 玩家指定武将
|
||||
|
||||
@prop({ required: true, default: [], type: Number })
|
||||
visitedHero: number[]; // 玩家指定武将
|
||||
|
||||
@prop({ required: true, default: () => { return getTodayZeroDate(REFRESH_HOUR) } })
|
||||
refVisitedTime: Date; // 玩家指定武将
|
||||
|
||||
public static async findAllByRole(roleId: string) {
|
||||
let rec: UserGachaType[] = await UserGachaModel.find({ roleId }).lean();
|
||||
return rec;
|
||||
|
||||
Reference in New Issue
Block a user