日志:记录重生数据
This commit is contained in:
@@ -161,6 +161,13 @@ export default class UserLog extends BaseModel {
|
||||
@prop({ required: false, type: BossHpLog, _id: false })
|
||||
bossHp: BossHpLog; // 诸侯混战血量参数
|
||||
|
||||
// 重生记录
|
||||
@prop({ required: false })
|
||||
hid: number; // 武将id
|
||||
|
||||
@prop({ required: false })
|
||||
heroInfo: string; // 武将信息
|
||||
|
||||
public static async createRecord(params: UserLogModelTypeParam) {
|
||||
const r = await UserLogModel.insertMany(params);
|
||||
return r;
|
||||
|
||||
Reference in New Issue
Block a user