@@ -9,17 +9,17 @@ |
||
9 | 9 | |
10 | 10 | class SerialConnector |
11 | 11 | { |
12 | - protected $res_active; |
|
13 | - protected $res_message; |
|
12 | + protected $res_active; |
|
13 | + protected $res_message; |
|
14 | 14 | |
15 | - protected function checkSN() |
|
16 | - { |
|
17 | - $json = json_decode(Curl::to(config('irfa.app_license_client.url')) |
|
18 | - ->withData(array('serial' => config('irfa.app_license_client.serial_number'))) |
|
19 | - ->post()); |
|
20 | - $this->res_active = $json->data->active; |
|
21 | - $this->res_message = $json->data->message; |
|
15 | + protected function checkSN() |
|
16 | + { |
|
17 | + $json = json_decode(Curl::to(config('irfa.app_license_client.url')) |
|
18 | + ->withData(array('serial' => config('irfa.app_license_client.serial_number'))) |
|
19 | + ->post()); |
|
20 | + $this->res_active = $json->data->active; |
|
21 | + $this->res_message = $json->data->message; |
|
22 | 22 | |
23 | - return $this->res_active; |
|
24 | - } |
|
23 | + return $this->res_active; |
|
24 | + } |
|
25 | 25 | } |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | - return [ |
|
2 | + return [ |
|
3 | 3 | |
4 | - 'serial_number' => env('SERIAL_NUMBER',null), |
|
5 | - 'url' => env('LICENSE',null), |
|
4 | + 'serial_number' => env('SERIAL_NUMBER',null), |
|
5 | + 'url' => env('LICENSE',null), |
|
6 | 6 | |
7 | 7 | ]; |