Pārlūkot izejas kodu

修改3pe出库规则

lvhao 4 nedēļas atpakaļ
vecāks
revīzija
bacb9d855a
1 mainītis faili ar 4 papildinājumiem un 3 dzēšanām
  1. 4 3
      core/CoreApp/models/Model_logic_express.php

+ 4 - 3
core/CoreApp/models/Model_logic_express.php

@@ -126,10 +126,11 @@ class Model_logic_express extends Lin_Model {
     }
     //76 77
     protected function check_3pe($waybill){
-        if(strlen($waybill) != 11 || strlen($waybill) != 15){
+        if(strlen($waybill) != 11 && strlen($waybill) != 15){
            return false;
         }
-        if(strpos($waybill, "WKSD") === false  || strpos($waybill, "GEX") === false){
+        
+        if(strpos($waybill, "WKSD") === false  && strpos($waybill, "GEX") === false){
             return false;
         }
         return true;
@@ -220,7 +221,7 @@ class Model_logic_express extends Lin_Model {
     }
 
     protected function check_yw($waybill){
-        if(strlen($waybill) != 19 || strlen($waybill) != 13){
+        if(strlen($waybill) != 19 && strlen($waybill) != 13){
             return false;
         }
         return true;