Explorar el Código

获取地址解析队列修复

DuGuYang hace 6 meses
padre
commit
6e1e4149de
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      Util/HaoDa/Tencent/GetTencentAddressInfoService.cs

+ 2 - 2
Util/HaoDa/Tencent/GetTencentAddressInfoService.cs

@@ -36,8 +36,8 @@ namespace MySystem
                     try
                     try
                     {
                     {
                         JsonData jsonObj = JsonMapper.ToObject(data);
                         JsonData jsonObj = JsonMapper.ToObject(data);
-                        int Id = int.Parse(jsonObj["Data"]["MerchantId"].ToString());
-                        string Address = jsonObj["Data"]["Address"].ToString();
+                        int Id = int.Parse(jsonObj["MerChantId"].ToString());
+                        string Address = jsonObj["Address"].ToString();
                         string Key = Library.ConfigurationManager.AppSettings["TencentKey"].ToString();
                         string Key = Library.ConfigurationManager.AppSettings["TencentKey"].ToString();
                         var info = function.GetWebRequest("https://apis.map.qq.com/ws/geocoder/v1/?address=" + Address + "&key=" + Key);
                         var info = function.GetWebRequest("https://apis.map.qq.com/ws/geocoder/v1/?address=" + Address + "&key=" + Key);
                         JsonData result = JsonMapper.ToObject(info);
                         JsonData result = JsonMapper.ToObject(info);