fixed
This commit is contained in:
parent
70ad159592
commit
845cc533f6
|
@ -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'
|
||||||
],
|
],
|
||||||
|
|
|
@ -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)) {
|
||||||
|
|
Loading…
Reference in New Issue