From c322472af09c678a9df9b8f8757941e88408cc94 Mon Sep 17 00:00:00 2001 From: hujiabin <519660157@qq.com> Date: Thu, 8 Aug 2024 17:32:01 +0800 Subject: [PATCH] 1 --- webapp/controller/HashRateController.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/webapp/controller/HashRateController.class.php b/webapp/controller/HashRateController.class.php index e082d1cb..f05cf849 100644 --- a/webapp/controller/HashRateController.class.php +++ b/webapp/controller/HashRateController.class.php @@ -175,9 +175,10 @@ class HashRateController extends BaseAuthedController $this->_rspErr(1, 'Already ended'); return; } + $tips = array(); for ($i=1;$i<5;$i++){ - foreach ($this->hashRateService->hashRateTask['task'.$i] as $task){ + foreach ($this->hashRateService->getHashRateTasks($i) as $task){ $taskDb = HashRate::find($task['task_id'],$currentPeriod['id']); $taskDto = $this->hashRateService->hashRateTaskDto($task,$taskDb,$currentPeriod['id']); if ($taskDto['state'] == \services\HashRateService::FINISHED_STATE){