|
@@ -67,13 +67,19 @@ class Cron
|
|
|
}
|
|
|
$temp = explode(',', $v['area']);
|
|
|
if ($role['type'] == 2) {
|
|
|
- if ($role['area'] == 1) {
|
|
|
+ $area = '';
|
|
|
+ if ($role['area'] == 1 && isset($temp[1])) {
|
|
|
# 城市
|
|
|
-
|
|
|
- } elseif ($role['area'] == 2) {
|
|
|
+ $area = $temp[0] . ',' . $temp[1];
|
|
|
+ } elseif ($role['area'] == 2 && isset($temp[2])) {
|
|
|
# 区县
|
|
|
- } elseif ($role['area'] == 3) {
|
|
|
+ $area = $temp[0] . ',' . $temp[1] . ',' . $temp[2];
|
|
|
+ } elseif ($role['area'] == 3 && isset($temp[3])) {
|
|
|
# 街道
|
|
|
+ $area = $temp[0] . ',' . $temp[1] . ',' . $temp[2] . ',' . $temp[3];
|
|
|
+ }
|
|
|
+ if ($area) {
|
|
|
+
|
|
|
}
|
|
|
}
|
|
|
}
|