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){