From d9956a5754ed73a71db9ab82e7f9e02a9311c424 Mon Sep 17 00:00:00 2001 From: luying Date: Wed, 20 Apr 2022 16:45:08 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8E=E5=8F=B0=EF=BC=9A=E8=99=9A=E6=8B=9F?= =?UTF-8?q?=E5=85=85=E5=80=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- game-server/app/services/gmService.ts | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/game-server/app/services/gmService.ts b/game-server/app/services/gmService.ts index 5094cf3fe..685e15000 100644 --- a/game-server/app/services/gmService.ts +++ b/game-server/app/services/gmService.ts @@ -33,6 +33,7 @@ import { getActivitiesByType } from "./activity/activityService"; import { SurveyModel } from "../db/Survery"; import { SurveyRecModel } from "../db/SurveyRec"; import { getPopUpShopData } from "./activity/popUpShopService"; +import { TaskPassData } from "../domain/activityField/taskPassField"; // —————————————— 跑马灯 —————————————— // // 初始 @@ -291,6 +292,15 @@ export function getActivityProducts(activity: ActivityModelType) { } return products; } + case ACTIVITY_TYPE.TASK_PASS: + { + let data = new TaskPassData(activity, 0, 0); + let products: { label: string, value: string }[] = []; + for(let reward of data.rewards) { + products.push(getDicRMB(reward.productID)); + } + return products; + } } return false