/// <summary> /// 更新优化后关键字老化时间 /// </summary> /// <param name="id"></param> static public void Post_keywordPlan(string userid, string engineKeyId) { var url = ConfigurationManager.AppSettings["root"] + "/jsonApi/post_keyword_plan/" + userid + "/" + engineKeyId; logger.Info("Post_keywordPlan url:" + url); HttpRequestWapper.Post_Data(url, null); }
/// <summary> /// 切换虚拟帐号 /// </summary> /// <param name="userId"></param> /// <param name="mockUserId"></param> static public void Shift_MockUserAccount(string newmockUserId) { var url = APIRoot + "shift_account"; Dictionary <string, string> keyvalues = new Dictionary <string, string>(); keyvalues.Add("newmockUserId", newmockUserId); HttpRequestWapper.Post_Data(url, keyvalues); }
void okBtn_Click(object sender, EventArgs e) { Dictionary <string, string> dict = new Dictionary <string, string>(); dict.Add("oldId", oldSelect == null ? "0" : oldSelect.ToString()); dict.Add("newId", comboBox1.SelectedValue.ToString()); HttpRequestWapper.Post_Data(ServerApiInvoker.APIRoot + "setSchemaObjectDefault", dict); }
/// <summary> /// /// </summary> /// <param name="id">script id</param> /// <param name="script"></param> static public void Post_Script(string id, string script) { var url = ConfigurationManager.AppSettings["root"] + "/jsonApi/post_script"; Dictionary <string, string> keyvalues = new Dictionary <string, string>(); keyvalues.Add("id", id); keyvalues.Add("script", System.Web.HttpUtility.UrlEncode(script)); HttpRequestWapper.Post_Data(url, keyvalues); }
public static void PostEmailRegisterStatue(string mockuserId, bool isActive) { var url = ConfigurationManager.AppSettings["root"] + "/jsonApi/post_email_statue/"; Dictionary <string, string> keyvalues = new Dictionary <string, string>(); keyvalues.Add("id", mockuserId); keyvalues.Add("IsActiveMail", isActive ? "1" : "0"); HttpRequestWapper.Post_Data(url, keyvalues); }
/// <summary> /// 更新近似度字符串 /// </summary> /// <param name="scriptId"></param> /// <param name="similarity"></param> public static void PostSimilarity(string scriptId, string similarity) { var url = ConfigurationManager.AppSettings["root"] + "/jsonApi/post_similarity/"; Dictionary <string, string> keyvalues = new Dictionary <string, string>(); keyvalues.Add("scriptId", scriptId); keyvalues.Add("similarity", similarity); HttpRequestWapper.Post_Data(url, keyvalues); }
static public void Post_register_result(string mockid, string resultId, ResultStatue statue) { var url = ConfigurationManager.AppSettings["root"] + "/jsonApi/post_register_result"; Dictionary <string, string> keyvalues = new Dictionary <string, string>(); keyvalues.Add("id", resultId); keyvalues.Add("mockid", mockid); keyvalues.Add("statue", ((int)statue).ToString()); HttpRequestWapper.Post_Data(url, keyvalues); }
public static void Post_thread(string ticket, string mockUserId, string scriptId, string schemaObjectId) { var url = ConfigurationManager.AppSettings["root"] + "/tasks/ThreadResult"; Dictionary <string, string> keyvalues = new Dictionary <string, string>(); keyvalues.Add("mockUserId", mockUserId); keyvalues.Add("scriptId", scriptId); keyvalues.Add("schemaObjectId", schemaObjectId); HttpRequestWapper.Post_Data(url, keyvalues, ticket); }
/// <summary> /// 提交用户发帖修改痕迹 /// </summary> /// <param name="userid">用户ID</param> /// <param name="url">发布页面地址</param> /// <param name="script">用户操作痕迹生成的脚本内容</param> public static void PostRecordMark(string userid, string scriptId, string script) { var url = ConfigurationManager.AppSettings["root"] + "/jsonApi/post_record_mark"; Dictionary <string, string> keyvalues = new Dictionary <string, string>(); keyvalues.Add("scriptId", scriptId); keyvalues.Add("userId", userid.ToString()); keyvalues.Add("script", System.Web.HttpUtility.UrlEncode(script)); HttpRequestWapper.Post_Data(url, keyvalues); }
/// <summary> /// 客户端异常数据报告 /// </summary> /// <param name="scriptId">脚本ID</param> /// <param name="actionId">活动ID</param> /// <param name="message">异常信息</param> /// <param name="actionIndex">活动行索引</param> /// <param name="actionType">活动类型</param> /// <param name="labelText">活动标签</param> public static void ExceptionReport(string scriptId, string actionId, string message, string actionIndex, string actionType, string labelText) { var url = ConfigurationManager.AppSettings["root"] + "/jsonApi/post_exception"; Dictionary <string, string> keyvalues = new Dictionary <string, string>(); keyvalues.Add("scriptId", scriptId); keyvalues.Add("actionId", actionId); keyvalues.Add("message", message); keyvalues.Add("actionIndex", actionIndex); keyvalues.Add("actionType", actionType); keyvalues.Add("labelText", string.IsNullOrEmpty(labelText) ? "" : labelText); HttpRequestWapper.Post_Data(url, keyvalues); }
public IResult Process(FakeHttpContext context, System.Runtime.InteropServices.Expando.IExpando expando) { string modelString = expando.GetString("Model"); string isRegister = expando.GetString("isRegister"); ScriptObject so = JsonConvert.DeserializeObject <ScriptObject>(modelString); string url = ServerApiInvoker.Domain + "tasks/RegiserResult"; Dictionary <string, string> dict = new Dictionary <string, string>(); dict.Add("websiteId", so.WebSiteId); dict.Add("mockUserId", Identity.MockUser.Id); dict.Add("scriptId", so.Id); dict.Add("isOk", isRegister); HttpRequestWapper.Post_Data(url, dict, Identity.Ticket); context.EnableTracing = true; return(new MatchHandler().HandleRequest(new UrlRequest() { Url = context.PageUrl, HttpContext = context })); }