From 5b0fb32c677e37297373b96e1427c65bdbf6e88e Mon Sep 17 00:00:00 2001 From: chenbo <709206448@qq.com> Date: Tue, 26 Sep 2023 14:10:19 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9D=A3=E4=BF=83=E5=AE=8C=E6=88=90=E9=9C=80?= =?UTF-8?q?=E6=B1=82=E6=94=B6=E9=9B=86=E5=92=8C=E4=BA=A4=E6=98=93=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E7=9A=84=E9=87=91=E9=A2=9D=E8=AE=A1=E7=AE=97=E7=89=B9?= =?UTF-8?q?=E6=AE=8A=E5=A4=84=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/common/logic/task/TaskLogic.php | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) 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'];