fixed-2024-03-06
This commit is contained in:
parent
56a5fd60e4
commit
9994edcd5f
|
@ -152,6 +152,11 @@ class FarmController extends BaseApiController
|
|||
|
||||
// 请求mqtt接口
|
||||
$list = RemoteRequestLogic::getAlarmData($deviceList);
|
||||
foreach($list as $k=>$v){
|
||||
if(time() - strtotime($v['alarm_time']) > 604800){
|
||||
unset($list[$k]);
|
||||
}
|
||||
}
|
||||
|
||||
return $this->success('成功', compact('list'));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue