|
@@ -28,7 +28,7 @@ class LabelDealService extends Service
|
|
|
}
|
|
|
}
|
|
|
|
|
|
- public function boxOut($data,$token,$result,$id)
|
|
|
+ public function boxOut($lead_bind,$lead_out,$token,$id)
|
|
|
{
|
|
|
//商标绑定
|
|
|
$url = 'https://tm.dwycloud.com/jbl/api/module-data/brand_in_stock/brand_in_stock/diy/1';
|
|
@@ -37,15 +37,15 @@ class LabelDealService extends Service
|
|
|
'Content-Type:application/json',
|
|
|
'Authorization: ' . $token,
|
|
|
];
|
|
|
- $lead_bind = $data['lead_bind'];
|
|
|
$return_bind = $this->post_helper($url, json_encode($lead_bind), $header);
|
|
|
+ file_put_contents('msg_result.txt',date('Y-m-d H:i:s') . "绑定:" . $return_bind. PHP_EOL,8);
|
|
|
$return_bind = json_decode($return_bind, true);
|
|
|
|
|
|
//商标出库
|
|
|
// $url = 'https://tm.dwycloud.com/jbl/api/module-data/brand_in_stock/brand_in_stock/diy/lead_bind_out_stock';
|
|
|
$url = 'https://tm.dwycloud.com/jbl/api/module-data/brand_in_stock/brand_in_stock/diy/11';
|
|
|
- $lead_out = $result;
|
|
|
$return_out = $this->post_helper($url, json_encode($lead_out), $header);
|
|
|
+ file_put_contents('msg_result.txt',date('Y-m-d H:i:s') . "出库:" . $return_out. PHP_EOL,8);
|
|
|
$return_out = json_decode($return_out, true);
|
|
|
|
|
|
//toDo
|