This commit is contained in:
hujiabin 2024-08-08 17:32:01 +08:00
parent 5f39be92af
commit c322472af0

View File

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