(编辑:jimmy 日期: 2024/10/30 浏览:2)
image.png
public static string Address{get{return ConfigurationManager.AppSettings["Address"];}}// Token: 0x06000073 RID: 115 RVA: 0x00015174 File Offset: 0x00013374public static List<SongResult> Search(string key, int page, string type){if (type == "xly"){key = HttpUtility.UrlEncode(key);}List<SongResult> result;if (string.IsNullOrEmpty(key)){result = null;}else{string text = string.Format("http://{0}/musicspy/search.aspx?source={1}&word={2}&page={3}&num=30", new object[]{SearchAction.Address,type,key,page});Console.WriteLine(text);string htmlContent = CommonHelper.GetHtmlContent(text, Encoding.UTF8, "GET");if (string.IsNullOrEmpty(htmlContent) || htmlContent == "null"){result = null;}else{List<SongResult> list;try{list = JsonConvert.DeserializeObject<List<SongResult(htmlContent);}catch (Exception ex){MainFrm.AddLog(ex.ToString());list = null;}result = list;}}return result;}
<?xml version="1.0"?><configuration><appSettings><add key ="Address" value="localhost:5555"/></appSettings></configuration>
image.png
image.png
image.png