更新 app/api/controller/IndexController.php

修复错误
This commit is contained in:
mkm 2023-12-20 18:09:07 +08:00
parent 8bf95a9a21
commit f6f4e5e007
1 changed files with 1 additions and 1 deletions

View File

@ -71,7 +71,7 @@ class IndexController extends BaseApiController
];
$monitorThreshold = MonitorThreshold::select();
if($monitorThreshold){
$monitorThreshold=$monitorThreshold->toArray()[0]
$monitorThreshold=$monitorThreshold->toArray()[0];
}else{
$monitorThreshold=[];
}