This commit is contained in:
chenbo 2024-02-26 11:30:26 +08:00
parent 70ad159592
commit 845cc533f6
2 changed files with 3 additions and 1 deletions

View File

@ -96,7 +96,7 @@ class DeviceController extends BaseApiController
{ {
$data = [ $data = [
[ [
'name'=>'4G中转站', 'name'=>'项圈中转站',
'desc'=>'4G中转站设备', 'desc'=>'4G中转站设备',
'icon'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/15fc3202402211610238016.png' 'icon'=>'https://lihai001.oss-cn-chengdu.aliyuncs.com/def/15fc3202402211610238016.png'
], ],

View File

@ -177,6 +177,7 @@ class RemoteRequestLogic extends BaseLogic
// 空气温度 ambient_temperature // 空气温度 ambient_temperature
$ambientTemperatureDevice = Device::whereIn('id', $deviceIds)->where('monitor_item', 'ambient_temperature,ambient_humidity')->find(); $ambientTemperatureDevice = Device::whereIn('id', $deviceIds)->where('monitor_item', 'ambient_temperature,ambient_humidity')->find();
$ambientTemperatureDevice['name'] = '温度监测';
if (!empty($ambientTemperatureDevice)) { if (!empty($ambientTemperatureDevice)) {
$rangeData = self::requestRangeMonitorData($ambientTemperatureDevice); $rangeData = self::requestRangeMonitorData($ambientTemperatureDevice);
if (!empty($rangeData)) { if (!empty($rangeData)) {
@ -190,6 +191,7 @@ class RemoteRequestLogic extends BaseLogic
// 空气湿度 ambient_humidity // 空气湿度 ambient_humidity
$ambientHumidityDevice = Device::whereIn('id', $deviceIds)->where('monitor_item', 'ambient_temperature,ambient_humidity')->find(); $ambientHumidityDevice = Device::whereIn('id', $deviceIds)->where('monitor_item', 'ambient_temperature,ambient_humidity')->find();
$ambientHumidityDevice['name'] = '湿度监测';
if (!empty($ambientHumidityDevice)) { if (!empty($ambientHumidityDevice)) {
$rangeData = self::requestRangeMonitorData($ambientHumidityDevice); $rangeData = self::requestRangeMonitorData($ambientHumidityDevice);
if (!empty($rangeData)) { if (!empty($rangeData)) {