public static void alimama_login(CmsForm cmsForm) { int n = 0; while (n < 10) { if (!AlimamaUtil.check_login(cmsForm.appBean.taoke_cookie) && Process.GetProcessesByName(Constants.alimama_login_exe_name).Length <= 0) { LogUtil.log_call(cmsForm, "阿里妈妈登录过期。正在开始重新登录"); if (cmsForm.checkBoxAutoLogin.Checked) { AlimamaLogin.login(cmsForm, 1); } else { LogUtil.log_call(cmsForm, "没有开启阿里妈妈自动登录,无法完成登录"); return; } } else if (AlimamaUtil.check_login(cmsForm.appBean.taoke_cookie)) { LogUtil.log_call(cmsForm, "阿里妈妈登录正常"); return; } else if (Process.GetProcessesByName(Constants.alimama_login_exe_name).Length > 0) { LogUtil.log_call(cmsForm, "登录窗口正在运行中"); Thread.Sleep(3000); } n++; } }
public static string zhuan_pid(CmsForm cmsForm, string content) { string string81; ArrayList arrayLists; bool flag; try { int num = 0; while (!AlimamaUtil.check_login(cmsForm.appBean.taoke_cookie)) { //if (this.bool_28) //{ // LogUtil.log_call(cmsForm, "阿里妈妈显示请求频繁,等待30秒再试!"); // Thread.Sleep(30000); //} //else if (num >= 30) { LogUtil.log_call(cmsForm, "登录阿里妈妈失败!"); string81 = "notlogin"; return(string81); } else { num++; //this.method_8(true); AlimamaLogin.login(cmsForm, 0); Thread.Sleep(20000); } } //content = .ᜀ(content); //content = .ᜂ(content); string str = SendUtil.method_307(cmsForm, content); if (str != null) { content = str; //this.string_80 = .ᜄ(content.Replace("<", " <").Replace(">", "> ")).Replace(" ", " "); //this.string_81 = content; //this.string_49 = this.string_81; //this.arrayList_5 = new ArrayList(); //this.bool_34 = false; //this.string_83 = ""; int num1 = 0; arrayLists = null; while (true) { //ArrayList arrayLists1 = this.method_324(this.string_80); //arrayLists = arrayLists1; //if (arrayLists1 != null) //{ // goto Label1; //} //if (num1 >= 3) //{ // break; //} //LogUtil.log_call(cmsForm, string.Concat("PID转换第【", num1 + 1, "】次失败,正在重试!")); //Thread.Sleep(1000); num1++; } LogUtil.log_call(cmsForm, "PID转换失败【3】次,跳过!"); string81 = null; } else { string81 = null; } } catch (Exception exception) { LogUtil.log_call(cmsForm, string.Concat("[changeFollowSndPid]出错:", exception.ToString())); string81 = null; } return(string81); Label1: //flag = (this.float_1 <= this.float_4 ? true : "".Equals(this.string_70)); //if (flag) //{ // this.int_26 = this.method_325(arrayLists); // this.string_81 = this.string_81.Replace("¥", "$"); // GClass30 gClass30 = null; // this.bool_5 = false; // if ((this.bool_3 ? false : !this.bool_6)) // { // this.string_81 = this.method_317(arrayLists); // } // else // { // gClass30 = this.method_140(this.string_81); // if (this.bool_6) // { // this.method_311(gClass30, arrayLists, this.int_26); // } // else if (!this.bool_5) // { // this.string_81 = this.method_317(arrayLists); // } // else // { // this.string_81 = gClass30.string_1.Replace("{couponItemUrl}", string.Concat("【领券下单地址】", this.method_315(gClass30))); // if ((this.bool_32 || !this.bool_4 ? false : this.int_26 == 4)) // { // this.string_81 = string.Concat(this.string_81, "<BR>复制这条消息,", gClass30._0.ᜀ, ",打开【手机淘宝】即可领券并下单"); // } // } // } // string81 = this.string_81; // return string81; //} //else //{ // string81 = "lowestcms"; // return string81; //} return(""); }