longyi 3 月之前
父节点
当前提交
78a7a2f57a

+ 5 - 1
core/CoreApp/controllers/Aatest.php

@@ -65,7 +65,11 @@ class Aatest extends Start_Controller {
     //定义方法的调用规则 获取URI第二段值
     public function _remap($arg,$arg_array)
     {
-		
+        $str = "4201120657329200190251001300050352";
+        echo substr($str, 0,3); 
+        echo "<br>";
+        echo substr($str,12);
+		die;
 		if($arg == 'fout')
         {
              //$this->_fout();

+ 7 - 1
core/CoreApp/controllers/Systembound.php

@@ -1054,7 +1054,13 @@ class Systembound extends Start_Controller {
 				}
 				if(strlen($number) == '34')//联邦杭州超长运单截取
 				{
-					$number = substr($number,22,12);
+					//$number = substr($number,22,12);
+					    $str  = substr($order, 0,3);
+        			    if($str == "420"){
+        			        $order = substr($order,12);
+        			    }else{
+        			        $order = substr($order,22,12);
+        			    }
 				}
 				
 				/**

+ 7 - 1
core/CoreApp/controllers/Systemfout.php

@@ -481,7 +481,13 @@ class Systemfout extends Start_Controller {
 			}
 			if(strlen($order) == '34')//联邦杭州超长运单截取
 			{
-				$order = substr($order,22,12);
+			    $str  = substr($order, 0,3);
+			    if($str == "420"){
+			        $order = substr($order,12);
+			    }else{
+			        $order = substr($order,22,12);
+			    }
+				
 			}
 			if(!$order)
 			{