This commit is contained in:
chenbo 2023-12-09 17:16:36 +08:00
parent ebdfc81b16
commit 5f1675abf4

View File

@ -3131,6 +3131,12 @@ class TaskLogic extends BaseLogic
if ($dayCount > $stageDayThreeCount) {
self::finishVillageTask7($startTime, $endTime, 567, 30, $taskTemplateInfo['money_three'], $villageCompany, $taskSchedulePlan);
}
$task = Task::where('id', $taskSchedulePlan['task_id'])->find();
// 未完成 关闭任务
if ($task['status'] != 3) {
(new Task())->closeTask($taskSchedulePlan['task_id']);
}
}
/**
@ -3152,7 +3158,7 @@ class TaskLogic extends BaseLogic
];
$result = ShopRequestLogic::getPlantingAndBreedingMerchantTradeAmount($param);
$task = Task::where('id', $taskSchedulePlan['task_id'])->find();
$tradeAmount = $result['data']['trade_amount'];
Log::info(['村管理公司定时任务结算执行-种养殖基地订单匹配-交易额', $tradeAmount]);
// 交易池