fixed-2024-03-06

This commit is contained in:
weiz 2024-03-06 21:44:02 +08:00
parent 56a5fd60e4
commit 9994edcd5f
1 changed files with 5 additions and 0 deletions

View File

@ -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'));
}