rabin 3 lat temu
rodzic
commit
ec163767a5
1 zmienionych plików z 6 dodań i 6 usunięć
  1. 6 6
      service/mail/lib/Manage.php

+ 6 - 6
service/mail/lib/Manage.php

@@ -744,20 +744,20 @@ class Manage
         if ($shop) {
             foreach ($shop as $k => $v) {
                 if ($v['type'] != 10) {
-                    if ($v['city'] > 0) {
-                        $key = $v['province'] . ',' . $v['city'];
+                    if ($v['town'] > 0) {
+                        $key = $v['province'] . ',' . $v['city'] . ',' . $v['county'] . ',' . $v['town'];
                         $area[$key]['shop_id'][$v['type']][] = $v['id'];
-                        $area[$key]['type'] = 1;
+                        $area[$key]['type'] = 3;
                     }
                     if ($v['county'] > 0) {
                         $key = $v['province'] . ',' . $v['city'] . ',' . $v['county'];
                         $area[$key]['shop_id'][$v['type']][] = $v['id'];
                         $area[$key]['type'] = 2;
                     }
-                    if ($v['town'] > 0) {
-                        $key = $v['province'] . ',' . $v['city'] . ',' . $v['county'] . ',' . $v['town'];
+                    if ($v['city'] > 0) {
+                        $key = $v['province'] . ',' . $v['city'];
                         $area[$key]['shop_id'][$v['type']][] = $v['id'];
-                        $area[$key]['type'] = 3;
+                        $area[$key]['type'] = 1;
                     }
                 }
             }