public void XinyueRYtasksubmit(List <int> indexlist, string type, Action <string> AddText) { Dictionary <string, Dictionary <string, string> > task_list_ids = DNFHelper.GetTask_list_ids(); string iActivityId = "54842"; string iFlowId = ""; string posturl = ""; string postdata = ""; string rseult = ""; string msg = ""; foreach (var tmp in indexlist) { iFlowId = tasklist.val[tmp].GetNode("id").toString(); switch (type) { case "0": { } break; case "1": case "2": { iFlowId = task_list_ids[type][iFlowId]; } break; } posturl = Properties.Resources.ameURL .Replace("{sSDID}", sSDIDList["http://apps.game.qq.com/comm-htdocs/js/ams/v0.2R02/act/49210/act.desc.js"]) .Replace("{actid}", iActivityId); postdata = Properties.Resources.ryzcPostdata .Replace("{ametk}", Value_Dictionary["{ametk}"]) .Replace("{actid}", iActivityId) .Replace("{flowid}", iFlowId); rseult = AmsSubmit(posturl, postdata); _MJson m = new _MJson(rseult); if (m.GetNode("ret").toString() == "0") { msg = "\r\n" + DateTime.Now.ToString() + ",成功完成任务【" + tasklist.val[tmp].GetNode("task_name").toString() + "】"; } else { msg = "\r\n" + DateTime.Now.ToString() + ",任务【" + tasklist.val[tmp].GetNode("task_name").toString() + "】失败,原因:" + m.GetNode("sMsg").toString(); } AddText(msg); } //string rseult = AmsSubmit(posturl, postdata); //return Regex.Match(rseult, "(?<=\"sOutValue1\":\").*?(?=\")").Value; }
private void loadServer() { svlist = DNFHelper.GETServerSelect(); comboBox2.Items.AddRange(svlist.Select(x => x.t).ToArray()); }
public DNFWebProxy(string cookie) : base(cookie) { svlist_value = DNFHelper.GETServerSelect(); }
public DNFWebProxy(CookieContainer cookie) : base(cookie) { svlist_value = DNFHelper.GETServerSelect(); }