lvhao 6 miesięcy temu
rodzic
commit
a56da2074a
1 zmienionych plików z 8 dodań i 8 usunięć
  1. 8 8
      core/CoreApp/controllers/Systemprint.php

+ 8 - 8
core/CoreApp/controllers/Systemprint.php

@@ -900,17 +900,17 @@ class Systemprint extends Start_Controller {
 				{
 				    $barcode = $this->usps->get_data($fullorder);
 					//改新的去掉
-					if(isset($barcode[0]))
-					{
-						$barcode = $barcode[0];
-					}
-					if(isset($barcode['LabelImage']) || isset($barcode[0]['LabelImage']))
+					// if(isset($barcode[0]))
+					// {
+					// 	$barcode = $barcode[0];
+					// }
+					//if(isset($barcode['LabelImage']) || isset($barcode[0]['LabelImage']))
 					//改新的去掉
-					//if(isset($barcode['labelImage']))
+					if(isset($barcode['labelImage']))
 					{
 						$bctime = date('Ymd',$time);
-						$Hwaybill = substr($barcode['BarcodeNumber'], 8); //改新的去掉  新的 Labellmage 改  labelImage
-						//$Hwaybill = $barcode['trackingNumber'];
+						//$Hwaybill = substr($barcode['BarcodeNumber'], 8); //改新的去掉  新的 Labellmage 改  labelImage
+						$Hwaybill = $barcode['trackingNumber'];
 					    $Hyd = $this->_pdf($barcode['LabelImage'],'y-'.$Hwaybill,$bctime);
 						if(isset($barcode['LabelImage']) && isset($Hwaybill))
 						{