diff --git a/app/Services/Admin/DeviceService.php b/app/Services/Admin/DeviceService.php index 6d08fb8..007294f 100644 --- a/app/Services/Admin/DeviceService.php +++ b/app/Services/Admin/DeviceService.php @@ -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 ; } }