diff --git a/admin/controllers/autohome/Customer.php b/admin/controllers/autohome/Customer.php index d9d2b0e9..26edf126 100644 --- a/admin/controllers/autohome/Customer.php +++ b/admin/controllers/autohome/Customer.php @@ -292,6 +292,28 @@ class Customer extends HD_Controller 'city_id' => $map_city[$v['city_name']] ? $map_city[$v['city_name']] : 0, 'c_time' => date('Y-m-d H:i:s'), ); + + switch($v['city_name']){ + case '北京市': + $temp['province_id'] = 110000; + $temp['city_id'] = 110100; + break; + case '天津市': + $temp['province_id'] = 120000; + $temp['city_id'] = 120100; + break; + case '重庆市': + $temp['province_id'] =500000; + $temp['city_id'] = 5000100; + break; + case '上海市': + $temp['province_id'] = 310000; + $temp['city_id'] = 310100; + break; + default: + break; + } + $adds[] = $temp; $done++; }