|
|
@ -14,11 +14,11 @@ class BaseService |
|
|
public function __construct($ip) |
|
|
public function __construct($ip) |
|
|
{ |
|
|
{ |
|
|
$this->device = [ |
|
|
$this->device = [ |
|
|
'protocol' => 'http', |
|
|
'protocol' => env('DEVICE_PROTOCOL', 'http'), |
|
|
'ip' => $ip, |
|
|
'ip' => $ip, |
|
|
'port' => '', |
|
|
'port' => '', |
|
|
'username' => env('device_username', 'admin'), |
|
|
'username' => env('DEVICE_USERNAME', 'admin'), |
|
|
'password' => env('device_password', 'Xingtong1124'), |
|
|
'password' => env('DEVICE_PASSWORD', 'Xingtong1124'), |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|