|
@@ -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);
|
|
|
}
|
|
|
|