/// <summary>
/// 58同城商圈列表
/// </summary>
protected void GetShopList()
{
string PostUrl = "http://#####.58.com/api/local/LocalList";
string uid = "######";
string key = "######";
string token_time = ((DateTime.UtcNow.Ticks - new DateTime(1970, 1, 1, 0, 0, 0).Ticks) / 10000).ToString();
string token = Encryption.MD5(uid + key + token_time, 1).ToLower();
StringBuilder sb = new StringBuilder();
sb.AppendFormat("&token_time={0}", token_time);
sb.AppendFormat("&uid={0}", uid);
sb.AppendFormat("&token={0}", token);
sb.AppendFormat("&pid={0}", ddlLocal.SelectedValue);
string JsonStr = HttpHelper.PostRequest(PostUrl, sb.ToString());
MLocalInfo model = JsonHelper.JsonDeserialize<MLocalInfo>(JsonStr);
ddlShop.DataSource = model.locallist;
ddlShop.DataTextField = "localname";
ddlShop.DataValueField = "localid";
ddlShop.DataBind();
}
public class MLocalInfo
{
public List<MLocalList> locallist { get; set; }
public string status { get; set; }
}
public class MLocalList
{