protected async override void OnNavigatedTo(NavigationEventArgs e) { string url = "http://bangumi.bilibili.com/api/tags?appkey=" + ApiHelper.appkey + "&build=424000&mobi_app=wp&platform=wp&page=1&pagesize=60&ts=" + ApiHelper.GetLinuxTS().ToString(); url += ApiHelper.GetSign(url); List <Tags> tags = await ContentServ.GetTagsAsync(url); if (WebStatusHelper.IsOnline()) { gridview.Items.Add(new Tags { Cover = "http://i0.hdslb.com/bfs/bangumi/2da98805cad609d9d55d469b76d556520fc943dc.jpg", TagID = "109", TagName = "新番推荐" }); } if (tags == null) { return; } foreach (var item in tags) { gridview.Items.Add(new Tags { Cover = item.Cover, TagID = item.TagID, TagName = item.TagName }); } }
protected async override void OnNavigatedTo(NavigationEventArgs e) { string url = "http://bangumi.bilibili.com/api/tags?appkey=85eb6835b0a1034e&build=424000&mobi_app=wp&platform=wp&page=1&pagesize=60&ts=1474645841127&sign="; string t = "appkey=85eb6835b0a1034e&build=424000&mobi_app=wp&platform=wp&page=1&pagesize=60&ts=1474645841127"; string[] argss = t.Split('&'); List <string> list = argss.ToList(); list.Sort(); StringBuilder stringBuilder = new StringBuilder(); foreach (string s in list) { stringBuilder.Append(stringBuilder.Length > 0 ? "&" : string.Empty); stringBuilder.Append(s); } string a = stringBuilder.ToString(); string b = "2ad42749773c441109bdc0191257a664"; string c = Secret.GetMD5(a + b); url += c; List <Tags> tags = await ContentServ.GetTagsAsync(url); if (tags != null && tags.Count > 0) { foreach (var item in tags) { gridview.Items.Add(new Tags { Cover = item.Cover, TagID = item.TagID, TagName = item.TagName }); } } }