后台:清理未使用的字段
This commit is contained in:
@@ -185,7 +185,7 @@ export default class UploadController extends Controller {
|
||||
const writeStream = fs.createWriteStream(target1);
|
||||
await pump(stream, writeStream);
|
||||
fs.copyFileSync(target1, target2);
|
||||
// files.push(filename);
|
||||
files.push(filename);
|
||||
} else {
|
||||
let target1 = path.join(this.config.baseDir, this.jsonFolder, filename);
|
||||
let target2 = path.join(this.config.baseDir, this.distJsonFolder, filename);
|
||||
|
||||
@@ -42,7 +42,7 @@ export default class Activity_Pop_Up_Shop_Record extends BaseModel {
|
||||
}
|
||||
|
||||
//删除活动统计记录
|
||||
public static async deleteActivity(serverId: number, activityId: number, roleId: string, id: number, type: number,) {
|
||||
public static async deleteActivity(_serverId: number, activityId: number, roleId: string, id: number, type: number,) {
|
||||
await ActivityPopUpShopRecordModel.deleteMany({
|
||||
roleId, activityId, id, type
|
||||
});
|
||||
|
||||
@@ -2,7 +2,6 @@ import moment = require('moment');
|
||||
import { ACTIVITY_TYPE, REFRESH_TIME, SERVER_OPEN_TIME, SIGNIN_CLOSE, SIGNIN_OPEN } from '../../consts';
|
||||
import { ActivityModelType } from '../../db/Activity';
|
||||
import { ActivitySignInModelType } from '../../db/ActivitySignIn';
|
||||
import { deltaDays } from '../../pubUtils/util';
|
||||
import { ActivityBase } from './activityField';
|
||||
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
import { TASK_TYPE } from '../../consts';
|
||||
import { ActivityModelType } from '../../db/Activity';
|
||||
import { ActivityThirtyDaysModelType } from '../../db/ActivityThirtyDays';
|
||||
import { ActivityThirtyDaysPointRewardModelType } from '../../db/ActivityThirtyDaysPointReward';
|
||||
|
||||
@@ -601,7 +601,7 @@ export async function accomplishTask(serverId: number, roleId: string, taskType:
|
||||
} else if (taskType == TASK_TYPE.EQUIP_QUALITY_COUNT || taskType == TASK_TYPE.GACHA_QUALITY_COUNT) {//每天统计
|
||||
let recordDate = moment(new Date()).startOf('d').toDate()
|
||||
let recordData: ActivityPopUpShopRecordModelType = await ActivityPopUpShopRecordModel.findRecordData(serverId, activity.activityId, roleId, task.id, task.taskType, recordDate)
|
||||
let { addCount, record } = isComplete(roleId, task.taskType, task.taskParam, count, parma, null);
|
||||
let { addCount } = isComplete(roleId, task.taskType, task.taskParam, count, parma, null);
|
||||
if (recordData && (recordData.count < task.condition) && (recordData.count + addCount >= task.condition)) {//完成当天任务
|
||||
let playerRecord = await ActivityPopUpShopModel.addTaskPushMessage(serverId, activity.activityId, roleId, task.id, task.taskType, count, beginTime, endTime);
|
||||
popShopData.setPlayerRecords(playerRecord)
|
||||
@@ -694,7 +694,7 @@ export async function accomplishTask(serverId: number, roleId: string, taskType:
|
||||
|
||||
return pushMessage;
|
||||
}
|
||||
|
||||
}
|
||||
/**
|
||||
* 达成任务标准
|
||||
*
|
||||
@@ -983,3 +983,4 @@ export async function accomplishTask(serverId: number, roleId: string, taskType:
|
||||
}
|
||||
return addFuncs;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user