This commit is contained in:
xiaoyu
2024-12-05 11:25:59 +08:00
parent 2f5a8f30f7
commit b29593922d
+22
View File
@@ -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++;
}