|
@@ -122,25 +122,25 @@ public class ExamInfoController extends BaseController {
|
|
|
System.out.println(response.getCity().getNames().get("zh-CN"));
|
|
|
|
|
|
String countryName = response.getCountry().getNames().get("zh-CN");
|
|
|
- String proviceName = response.getMostSpecificSubdivision().getNames().get("zh-CN");
|
|
|
+ String provinceName = response.getMostSpecificSubdivision().getNames().get("zh-CN");
|
|
|
String cityName = response.getCity().getNames().get("zh-CN");
|
|
|
|
|
|
- DictCity provice = null;
|
|
|
+ DictCity province = null;
|
|
|
DictCity city = null;
|
|
|
- if (proviceName != null) {
|
|
|
- provice = dictCityService.getDictCityByName(proviceName);
|
|
|
+ if (provinceName != null) {
|
|
|
+ province = dictCityService.getDictCityByName(provinceName);
|
|
|
}
|
|
|
if (cityName != null) {
|
|
|
city = dictCityService.getDictCityByName(cityName);
|
|
|
}
|
|
|
|
|
|
Map<String, Object> resultMap = new HashMap<String, Object>();
|
|
|
- if (provice != null) {
|
|
|
- resultMap.put("provice", provice.getCode());
|
|
|
- resultMap.put("proviceName", provice.getName());
|
|
|
+ if (province != null) {
|
|
|
+ resultMap.put("province", province.getCode());
|
|
|
+ resultMap.put("provinceName", province.getName());
|
|
|
} else {
|
|
|
- resultMap.put("provice", null);
|
|
|
- resultMap.put("proviceName", null);
|
|
|
+ resultMap.put("province", null);
|
|
|
+ resultMap.put("provinceName", null);
|
|
|
}
|
|
|
if (city != null) {
|
|
|
resultMap.put("city", city.getCode());
|