From 1251ec38a04008266485805a04c46c618b39cbd4 Mon Sep 17 00:00:00 2001 From: zhaocy Date: Tue, 19 Jul 2022 10:48:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=94=BB=E7=95=A5=E7=B1=BB?= =?UTF-8?q?=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- comm/const.go | 7 ++++--- modules/task/config.go | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/comm/const.go b/comm/const.go index 6c2b6cc76..9b2330155 100644 --- a/comm/const.go +++ b/comm/const.go @@ -104,7 +104,8 @@ const ( type TaskTag int32 const ( - TASK_DAILY TaskTag = 1 //每日任务 - TASK_WEEKLY TaskTag = 2 //周任务 - TASK_ACHIEVE TaskTag = 3 //成就 + TASK_DAILY TaskTag = 1 //每日任务 + TASK_WEEKLY TaskTag = 2 //周任务 + TASK_ACHIEVE TaskTag = 3 //成就 + TASK_STRATEGY TaskTag = 4 // 攻略 ) diff --git a/modules/task/config.go b/modules/task/config.go index 1ad2bc349..44562c139 100644 --- a/modules/task/config.go +++ b/modules/task/config.go @@ -130,7 +130,7 @@ func (this *configureComp) getTaskByTag(taskTag int32) (data []*cfg.Game_taskRou return } -//获取活跃度奖励 +//获取活跃度奖励list func (this *configureComp) getTaskActiveByTag(taskTag int32) (data []*cfg.Game_activeRewardData, err error) { conf, err := this.getActiveRewardCfg() if err != nil { @@ -148,6 +148,7 @@ func (this *configureComp) getTaskActiveByTag(taskTag int32) (data []*cfg.Game_a return } +// 获取活跃度配置map func (this *configureComp) getTaskActiveById(id int32) (data *cfg.Game_activeRewardData) { conf, err := this.getActiveRewardCfg() if err != nil {