Browse Source

获取地址解析队列修复

DuGuYang 6 months ago
parent
commit
6e1e4149de
1 changed files with 2 additions and 2 deletions
  1. 2 2
      Util/HaoDa/Tencent/GetTencentAddressInfoService.cs

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

@@ -36,8 +36,8 @@ namespace MySystem
                     try
                     {
                         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();
                         var info = function.GetWebRequest("https://apis.map.qq.com/ws/geocoder/v1/?address=" + Address + "&key=" + Key);
                         JsonData result = JsonMapper.ToObject(info);