Commit 941ee9e5 authored by hangjun83's avatar hangjun83

openapi 震坤行

parent 785107f2
...@@ -334,6 +334,10 @@ class ZhenKhService ...@@ -334,6 +334,10 @@ class ZhenKhService
$pdf = $this->apiService->getPlatformDataEntries('zkh_order_delivery_pdf_'.$deliveryCode,'data_values'); $pdf = $this->apiService->getPlatformDataEntries('zkh_order_delivery_pdf_'.$deliveryCode,'data_values');
if(!$pdf || empty($pdf)){ if(!$pdf || empty($pdf)){
$zkhDeliveryCode = $this->apiService->getPlatformDataEntries('zkh_delivery_code_'.$deliveryCode,'data_values'); $zkhDeliveryCode = $this->apiService->getPlatformDataEntries('zkh_delivery_code_'.$deliveryCode,'data_values');
if(!$zkhDeliveryCode){
SimpleLogs::writeLog($deliveryCode.'送货单无法匹配', __CLASS__.':getDeliveryOrderPdf', 'error');
return false;
}
$deliveryInfo = $this->apiService->getDeliveryOrderDetailForPDF($zkhDeliveryCode['code']['deliveryCode'],$this->getToken()); $deliveryInfo = $this->apiService->getDeliveryOrderDetailForPDF($zkhDeliveryCode['code']['deliveryCode'],$this->getToken());
if($deliveryInfo){ if($deliveryInfo){
$this->apiService->storePlatformDataEntries('zkh_order_delivery_pdf_'.$deliveryCode,['pdf' => $deliveryInfo]); $this->apiService->storePlatformDataEntries('zkh_order_delivery_pdf_'.$deliveryCode,['pdf' => $deliveryInfo]);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment