ShuanghongS 3 місяців тому
батько
коміт
20f3ab3b4e
1 змінених файлів з 6 додано та 2 видалено
  1. 6 2
      service/destination_delivery.class.php

+ 6 - 2
service/destination_delivery.class.php

@@ -35,7 +35,8 @@ class destination_delivery {
             $term = $_POST['term'];
             $term = trim($term);
             $sql = "select DISTINCT category AS country_code from public.kerry_system_code
-                        where category ilike '" . common::check_input($term) . "%'";
+                        where description='COUNTRY-STATION' 
+                              and category ilike '" . common::check_input($term) . "%'";
             $sql .= " order by category";
 
             $rs = common::excuteListSql($sql);
@@ -56,7 +57,10 @@ class destination_delivery {
         */
         if ($operate == "station") {
             $country = common::check_input($_REQUEST['country']);
-            $sql  = "select code from public.kerry_system_code where category = '".$country."' and code NOT LIKE 'Online_%'";
+            $sql  = "select code from public.kerry_system_code 
+                    where description='COUNTRY-STATION'  
+                        and category = '".$country."'   
+                        and code NOT LIKE 'Online_%'";
             $rs = common::excuteListSql($sql);
             foreach($rs as $key => $val){
                 if(!empty($val['code'])){