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