Pārlūkot izejas kodu

获取地址解析队列修复

DuGuYang 6 mēneši atpakaļ
vecāks
revīzija
6e1e4149de
1 mainītis faili ar 2 papildinājumiem un 2 dzēšanām
  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);