活动:删除活动多余代码

This commit is contained in:
qiaoxin
2021-07-29 19:43:49 +08:00
parent 3aa0e9b70d
commit aec842c1b8
3 changed files with 7 additions and 7 deletions
@@ -49,7 +49,7 @@ export class ActivityHandler {
type: groupData.type, type: groupData.type,
activities: playerGroupActivityArray, activities: playerGroupActivityArray,
}); });
console.log(`${roleId} 活动合集 groupId:${groupData.groupId}, 合集类型${groupData.type}, 一共${playerGroupActivityArray.length}个`) // console.log(`${roleId} 活动合集 groupId:${groupData.groupId}, 合集类型${groupData.type}, 一共${playerGroupActivityArray.length}个`)
} }
return resResult(STATUS.SUCCESS, { playerActivityArray, playerGroupArray }); return resResult(STATUS.SUCCESS, { playerActivityArray, playerGroupArray });
+3 -3
View File
@@ -70,8 +70,8 @@ export abstract class ActivityBase {
this.nextRefreshTime = moment(this.beginTime).add(activityData.interval * this.roundIndex, 'second').valueOf(); this.nextRefreshTime = moment(this.beginTime).add(activityData.interval * this.roundIndex, 'second').valueOf();
this.todayIndex = Math.ceil(((moment(new Date).valueOf() - this.beginTime) / (24 * 60 * 60 * 1000))); this.todayIndex = Math.ceil(((moment(new Date).valueOf() - this.beginTime) / (24 * 60 * 60 * 1000)));
} }
console.log('活动时间数据...', '活动id:', activityData.activityId, '类型:', activityData.timeType, '开始时间:', this.beginTime, moment(this.beginTime).toDate(), // console.log('活动时间数据...', '活动id:', activityData.activityId, '类型:', activityData.timeType, '开始时间:', this.beginTime, moment(this.beginTime).toDate(),
'结束:', this.endTime, moment(this.endTime).toDate(), // '结束:', this.endTime, moment(this.endTime).toDate(),
'今天第几天:', this.todayIndex, '回合:', this.roundIndex, '下次刷新:', this.nextRefreshTime, moment(this.nextRefreshTime).toDate()) // '今天第几天:', this.todayIndex, '回合:', this.roundIndex, '下次刷新:', this.nextRefreshTime, moment(this.nextRefreshTime).toDate())
} }
} }
+3 -3
View File
@@ -496,7 +496,7 @@ function checkRecResult(rec: UserTaskRecType, id: number) {
* *
*/ */
export async function accomplishTask(serverId: number, roleId: string, taskType: TASK_TYPE, count: number, parma?: any) { export async function accomplishTask(serverId: number, roleId: string, taskType: TASK_TYPE, count: number, parma?: any) {
console.log('accomplishTask', roleId, taskType, count, JSON.stringify(parma)) // console.log('accomplishTask', roleId, taskType, count, JSON.stringify(parma))
let pushMessage = []; let pushMessage = [];
let { activityGroupId } = await ServerlistModel.findByServerId(serverId); let { activityGroupId } = await ServerlistModel.findByServerId(serverId);
let { createTime } = await RoleModel.findByRoleId(roleId); let { createTime } = await RoleModel.findByRoleId(roleId);
@@ -905,7 +905,7 @@ export async function accomplishTask(serverId: number, roleId: string, taskType:
*/ */
export function isComplete(roleId: string, taskType: TASK_TYPE, taskParam: string, count: number, activityId: number, paramObj?: any, recordData?: any): any { export function isComplete(roleId: string, taskType: TASK_TYPE, taskParam: string, count: number, activityId: number, paramObj?: any, recordData?: any): any {
console.log('达成任务标准', roleId, taskType, taskParam, count, activityId, paramObj) // console.log('达成任务标准', roleId, taskType, taskParam, count, activityId, paramObj)
let param = splitString(taskParam, '&'); let param = splitString(taskParam, '&');
let addCount: number = 0; // 条件是否满足 let addCount: number = 0; // 条件是否满足
let record: any = null; let record: any = null;
@@ -1231,7 +1231,7 @@ export function isComplete(roleId: string, taskType: TASK_TYPE, taskParam: strin
break; break;
} }
console.log('dddddddddddd', addCount, record) // console.log('dddddddddddd', addCount, record)
return { addCount, record }; return { addCount, record };
} }