|
@@ -100,12 +100,15 @@ class DesktopDeviceJob implements ShouldQueue
|
|
|
$response = curl_exec($curl);
|
|
|
curl_close($curl);
|
|
|
|
|
|
- file_put_contents('record_get_dispatch.txt',date('Y-m-d H:i:s'). PHP_EOL . $response .PHP_EOL,8);
|
|
|
+ file_put_contents('record_get_dispatch.txt',date('Y-m-d H:i:s'). PHP_EOL . $response .PHP_EOL.'getlist'.PHP_EOL,8);
|
|
|
|
|
|
return json_decode($response,true);
|
|
|
}
|
|
|
|
|
|
public function completionOrders($data){
|
|
|
+ list($status,$token) = ClearDataService::getToken();
|
|
|
+ if(! $status) return;
|
|
|
+
|
|
|
//组织数据
|
|
|
$completion_orders_dtl = [];
|
|
|
$first = $data['content'][0]['dispatch_orders'];
|
|
@@ -187,7 +190,7 @@ class DesktopDeviceJob implements ShouldQueue
|
|
|
];
|
|
|
//组织数据------
|
|
|
$url = 'http://121.36.142.167:7774/jbl/api/module-data/completion_orders/completion_orders';
|
|
|
- $header = ['Authorization: Bearer eyJhbGciOiJIUzUxMiJ9.eyJzdWIiOiIxIiwiYXV0aCI6IlJPTEVfSU5ORVJfVVNFUixST0xFX0FETUlOLFJPTEVfSU5URVJGQUNFIiwidG9rZW5JZCI6IjM1IiwiZXhwIjoxNjk0Njc0MTE0fQ.L3Di3K_cpF0rWSgvzbcLufLm8bkCxd3Y-xudfKzSm4F-qdpDr0hYWWQP5K5BYTNuZnu4tWpGmSW2KRHU0pjt-A','Content-Type:application/json','Site:010800179'];
|
|
|
+ $header = ["Authorization: Bearer {$token}","Content-Type:application/json",'Site:91451322MA5P9JNKXA'];
|
|
|
|
|
|
$curl = curl_init();
|
|
|
curl_setopt_array($curl, array(
|
|
@@ -205,7 +208,7 @@ class DesktopDeviceJob implements ShouldQueue
|
|
|
$response = curl_exec($curl);
|
|
|
curl_close($curl);
|
|
|
|
|
|
- file_put_contents('record_get_dispatch.txt',date('Y-m-d H:i:s'). PHP_EOL . $response .PHP_EOL,8);
|
|
|
+ file_put_contents('record_get_dispatch.txt',date('Y-m-d H:i:s'). PHP_EOL . $response .PHP_EOL.'create'.PHP_EOL,8);
|
|
|
}
|
|
|
|
|
|
protected function echoMessage(OutputInterface $output)
|