diff --git a/app/common/logic/task/TaskLogic.php b/app/common/logic/task/TaskLogic.php index 124950c56..990450529 100644 --- a/app/common/logic/task/TaskLogic.php +++ b/app/common/logic/task/TaskLogic.php @@ -383,7 +383,21 @@ class TaskLogic extends BaseLogic // 第三阶段金额 return $tempalte['new_money_three']; } - } elseif ($tempalte['types'] == 2) { // 长期任务 + } elseif ($tempalte['types'] == 2) { + // 长期任务 + + // 督促完成需求收集和交易任务 第二个阶段即长期 + $townTaskTypeList = DictData::where(['type_value' => 'town_task_type', 'status' => 1])->column('value', 'id'); + if ($townTaskTypeList[$tempalte['type'] === 'town_task_type_5']) { + if ($v_day_count<= $stageDayOneAccumulative) { + // 第一阶段金额 + return $tempalte['money']; + } elseif ( $v_day_count > $stageDayOneAccumulative) { + // 长期金额 + return $tempalte['money_three']; + } + } + if ($v_day_count<= $stageDayOneAccumulative) { // 第一阶段金额 return $tempalte['money'];