浏览代码

切换为老的usps接口

lvhao 5 月之前
父节点
当前提交
b5f34e22cc
共有 2 个文件被更改,包括 16 次插入16 次删除
  1. 12 12
      core/CoreApp/controllers/Systemprint.php
  2. 4 4
      core/CoreApp/models/Model_usps.php

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

@@ -900,21 +900,21 @@ 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'];
-					    $Hyd = $this->_pdf($barcode['labelImage'],'y-'.$Hwaybill,$bctime);
-					    //$Hyd = $this->_pdf($barcode['LabelImage'],'y-'.$Hwaybill,$bctime);
-						//if(isset($barcode['LabelImage']) && isset($Hwaybill))
-						if(isset($barcode['labelImage']) && isset($Hwaybill))
+						$Hwaybill = substr($barcode['BarcodeNumber'], 8); //改新的去掉  新的 Labellmage 改  labelImage
+						//$Hwaybill = $barcode['trackingNumber'];
+					    //$Hyd = $this->_pdf($barcode['labelImage'],'y-'.$Hwaybill,$bctime);
+					    $Hyd = $this->_pdf($barcode['LabelImage'],'y-'.$Hwaybill,$bctime);
+						if(isset($barcode['LabelImage']) && isset($Hwaybill))
+						//if(isset($barcode['labelImage']) && isset($Hwaybill))
 						{
 							if($fullorder['waybill'] != "")
 							{

文件差异内容过多而无法显示
+ 4 - 4
core/CoreApp/models/Model_usps.php