活动:添加新任务类型
This commit is contained in:
@@ -54,6 +54,14 @@ export default class Activity_Pop_Up_Shop extends BaseModel {
|
||||
}
|
||||
|
||||
//根据活动taskId查询现在正在进行的活动数据
|
||||
public static async findDataByTaskId(serverId: number, activityId: number, roleId: string, id: number, type: number) {
|
||||
let result: ActivityPopUpShopModelType = await ActivityPopUpShopModel.findOne({
|
||||
serverId, roleId, activityId, id, type,
|
||||
}).lean(true);
|
||||
return result;
|
||||
}
|
||||
|
||||
//根据活动taskId查询现在正在开启的商店数据
|
||||
public static async findOpenDataByTaskId(serverId: number, activityId: number, roleId: string, id: number, type: number) {
|
||||
let nowDate = new Date();
|
||||
let result: ActivityPopUpShopModelType = await ActivityPopUpShopModel.findOne({
|
||||
|
||||
Reference in New Issue
Block a user