lvhao 20 часов назад
Родитель
Сommit
559a3b324e
1 измененных файлов с 13 добавлено и 0 удалено
  1. 13 0
      core/CoreApp/models/Model_logic_express.php

+ 13 - 0
core/CoreApp/models/Model_logic_express.php

@@ -46,6 +46,9 @@ class Model_logic_express extends Lin_Model {
         }else if(in_array($express_code,[51,88])){
             //惠城ges
             return $this->check_ges($waybill);
+        }else if(in_array($express_code,[91])){
+            //惠程的加拿大小包
+            return $this->check_ubi($waybill);
         }
         // else if(in_array($express_code,[35])){
         //     //燕文
@@ -104,6 +107,9 @@ class Model_logic_express extends Lin_Model {
         }else if(in_array($print_code,['HUALEI-GES-EU','HUALEI-GES-UK'])){
             //惠城ges
             return $this->check_ges($waybill);
+        }else if(in_array($print_code,['HUALEI-XB-CA'])){
+            //惠城ges
+            return $this->check_ubi($waybill);
         }
         // else if(in_array($print_code,['YANWEN'])){
         //     //燕文
@@ -251,6 +257,13 @@ class Model_logic_express extends Lin_Model {
         return true;
     }
 
+    protected function check_ubi($waybill){
+        if(strlen($waybill) != 16){
+            return false;
+        }
+        return true;
+    }
+