rabin 2 år sedan
förälder
incheckning
878604cbbb
2 ändrade filer med 6 tillägg och 1 borttagningar
  1. 1 0
      app/shop/database/sell_order.php
  2. 5 1
      app/shop/lib/Area.php

+ 1 - 0
app/shop/database/sell_order.php

@@ -585,6 +585,7 @@ return array
             'match'     => 'is_numeric',
             'option'    => $status_manage,
             'search'    => 'select',
+            //'search_after' => '<br />',
             'list'      => true,
             'list_order' => 14,
         ),

+ 5 - 1
app/shop/lib/Area.php

@@ -53,6 +53,10 @@ class Area
             $default = $this->default;
         }
 
+        if ($level_id < 0) {
+            Dever::alert('error');
+        }
+
         # 四级联动
         if ($level_num == 1) {
             $t = 'area/province';
@@ -78,7 +82,7 @@ class Area
             Dever::alert('error');
         }
 
-        if ($level_search || $level_num > 1) {
+        if ($level_search || $level_num >= 1) {
             array_unshift($data, $default);
         }