Kaynağa Gözat

修改3pe出库规则

lvhao 3 ay önce
ebeveyn
işleme
bacb9d855a
1 değiştirilmiş dosya ile 4 ekleme ve 3 silme
  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;