diff --git a/app/Services/BaseService.php b/app/Services/BaseService.php index f08d6b3..8916ce7 100644 --- a/app/Services/BaseService.php +++ b/app/Services/BaseService.php @@ -14,11 +14,11 @@ class BaseService public function __construct($ip) { $this->device = [ - 'protocol' => 'http', + 'protocol' => env('DEVICE_PROTOCOL', 'http'), 'ip' => $ip, 'port' => '', - 'username' => env('device_username', 'admin'), - 'password' => env('device_password', 'Xingtong1124'), + 'username' => env('DEVICE_USERNAME', 'admin'), + 'password' => env('DEVICE_PASSWORD', 'Xingtong1124'), ]; }