调整通风开启关闭
parent
b0d80f6557
commit
fe54903d0e
|
|
@ -485,8 +485,8 @@ class DeviceService extends BaseService
|
|||
'content' => $msg,
|
||||
]);
|
||||
//编号,-todo
|
||||
// $httpClient = app(HttpClient::class);
|
||||
// dd($httpClient->deviceDataDownlink($device->sn, 'switch_control', ['switch_state' => 1]));
|
||||
$httpClient = app(HttpClient::class);
|
||||
$httpClient->deviceDataDownlink($device->sn, 'switch_control', ['switch_state' => 1]);
|
||||
return ;
|
||||
}
|
||||
|
||||
|
|
@ -504,8 +504,8 @@ class DeviceService extends BaseService
|
|||
'content' => $msg,
|
||||
]);
|
||||
//编号,
|
||||
// $httpClient = app(HttpClient::class);
|
||||
// dd($httpClient->deviceDataDownlink($device->sn, 'switch_control', ['switch_state' => 0]));
|
||||
$httpClient = app(HttpClient::class);
|
||||
$httpClient->deviceDataDownlink($device->sn, 'switch_control', ['switch_state' => 0]);
|
||||
return ;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue