活动:添加新任务的统计

This commit is contained in:
qiaoxin
2021-05-20 21:21:45 +08:00
parent 98abec3a9d
commit b7bae40010
4 changed files with 12 additions and 2 deletions

View File

@@ -17,6 +17,7 @@ import { RECRUIT } from "../../../pubUtils/dicParam";
import { getAllHeroByQuality } from "../../../services/gachaService";
import { transPiece } from "../../../pubUtils/itemUtils";
import { CreateHeroParam } from "../../../domain/roleField/hero";
import { accomplishTask } from "../../../pubUtils/taskUtil";
export default function (app: Application) {
return new GachaHandler(app);
@@ -130,6 +131,8 @@ export class GachaHandler {
// 任务
await checkTask(roleId, sid, funcs, TASK_TYPE.GASHA, count, true, {});
//活动统计
await accomplishTask(serverId, roleId, TASK_TYPE.GASHA, count)
let resultRefFreeTime = 0;
if (dicGacha.free.count > 0) {