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