小么熊🐻 2 gadi atpakaļ
vecāks
revīzija
bbff343662

+ 9 - 9
nbjk-admin/src/main/java/com/miaxis/app/controller/exam/ExamInfoController.java

@@ -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());