|
@@ -17,6 +17,7 @@ class DesktopDeviceJob implements ShouldQueue
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
use Dispatchable, InteractsWithQueue, Queueable, SerializesModels;
|
|
|
|
|
|
protected $data;
|
|
protected $data;
|
|
|
|
+ protected $url;
|
|
|
|
|
|
/**
|
|
/**
|
|
* Create a new job instance.
|
|
* Create a new job instance.
|
|
@@ -26,6 +27,7 @@ class DesktopDeviceJob implements ShouldQueue
|
|
public function __construct($data)
|
|
public function __construct($data)
|
|
{
|
|
{
|
|
$this->data = $data;
|
|
$this->data = $data;
|
|
|
|
+ $this->url = config('ip.zs');
|
|
}
|
|
}
|
|
|
|
|
|
/**
|
|
/**
|
|
@@ -64,7 +66,7 @@ class DesktopDeviceJob implements ShouldQueue
|
|
list($status,$token) = ClearDataService::getToken();
|
|
list($status,$token) = ClearDataService::getToken();
|
|
if(! $status) return;
|
|
if(! $status) return;
|
|
|
|
|
|
- $url = 'http://121.36.142.167:7774/jbl/api/module-data/dispatch_orders/page';
|
|
|
|
|
|
+ $url = $this->url . 'jbl/api/module-data/dispatch_orders/page';
|
|
$post = [
|
|
$post = [
|
|
'direction' => 'DESC',
|
|
'direction' => 'DESC',
|
|
'property' => 'id',
|
|
'property' => 'id',
|
|
@@ -189,7 +191,7 @@ class DesktopDeviceJob implements ShouldQueue
|
|
"showModelId" => "474382714828959744"
|
|
"showModelId" => "474382714828959744"
|
|
];
|
|
];
|
|
//组织数据------
|
|
//组织数据------
|
|
- $url = 'http://121.36.142.167:7774/jbl/api/module-data/completion_orders/completion_orders';
|
|
|
|
|
|
+ $url = $this->url . 'jbl/api/module-data/completion_orders/completion_orders';
|
|
$header = ["Authorization: Bearer {$token}","Content-Type:application/json",'Site:91451322MA5P9JNKXA'];
|
|
$header = ["Authorization: Bearer {$token}","Content-Type:application/json",'Site:91451322MA5P9JNKXA'];
|
|
|
|
|
|
$curl = curl_init();
|
|
$curl = curl_init();
|