private void BT_import_simple_Click(object sender, EventArgs e) { toolStripComboBox1.SelectedIndex = 0; string path = TB_Path.Text.Trim(); List <string> pathList = FileHelper.read(Application.StartupPath + "//import//" + path, Encoding.UTF8); _mfForm.tbzfbs.Clear(); foreach (var line in pathList) { tb_tbzfb tb = new tb_tbzfb(); //淘宝账号|淘宝登陆密码|支付宝登陆密码|邮箱(支付宝)账号| //邮箱密码|支付密码|身份证号 tb.tbName = line; tb.tbPwd = "qww6633"; tb.zfbPwd = "qww6633"; tb.zfbEmail = line; tb.zfbEmailPwd = "qww6633"; tb.zfbPayPwd = "QWW6633"; tb.tbStatus = ""; _mfForm.tbzfbs.Add(tb); } //新建table. displaylist(_mfForm.tbzfbs, DGV1); ; }
public static tb_tbzfb InitXiaoHaoFromLine(string line) { var l1s = line.Split('|'); var tb = new tb_tbzfb(); tb.tbName = l1s[0]; tb.zfbEmail = l1s[1]; //淘宝账号|淘宝登陆密码|支付宝登陆密码|邮箱(支付宝)账号| //邮箱密码|支付密码|身份证号 //淘宝名|支付宝账户名(邮箱名)|邮箱密码|支付宝登录密码|支付宝支付密码|身份证名|身份证号码|ok //密保问题1-1|密保问题1-2|密保1-答案 tb.tbPwd = l1s[3]; tb.zfbPwd = l1s[3]; tb.zfbEmailPwd = l1s[2]; tb.zfbPayPwd = l1s[4]; tb.realname = l1s[5]; tb.zfbSFZ = l1s[6]; tb.mb_1_1 = l1s[7]; tb.mb_1_2 = l1s[8]; tb.mb_1_3 = l1s[9]; tb.mb_2_1 = l1s[10]; tb.mb_2_2 = l1s[11]; tb.mb_2_3 = l1s[12]; tb.mb_3_1 = l1s[13]; tb.mb_3_2 = l1s[14]; tb.mb_3_3 = l1s[15]; return(tb); }
public void ReportAccountTest() { var t1 = new tb_tasklog("*****@*****.**", BusinessStatus.ready.ToString()); t1.action = "buy"; t1.actionresult = "1"; t1.note = "²âÊÔ"; MainForm.state = BusinessStatus.ready; currentAccount = new tb_tbzfb(); currentAccount.zfbEmail = "*****@*****.**"; this.ReportAccount("ok"); }
public List <OpenPop.Mime.Message> GetEmails(tb_tbzfb currentHaoZi, ref bool error) { var messages = new List <OpenPop.Mime.Message>(); // We will try to load in default values for the hostname, port, ssl, username and password from a file // string myDocs = Environment.GetFolderPath(Environment.SpecialFolder.Personal); string file = Application.StartupPath + "//import//popserver.txt"; if (File.Exists(file)) { using (StreamReader reader = new StreamReader(File.OpenRead(file))) { mcClient.popServer = reader.ReadLine(); // mcClient.port = reader.ReadLine(); // Port mcClient.ssl = bool.Parse(reader.ReadLine() ?? "true"); // Whether to use SSL or not mcClient.username = reader.ReadLine(); // Username mcClient.pwd = currentHaoZi.zfbEmailPwd; // Password } } mcClient.username = currentHaoZi.zfbEmail; // int count = 0; try { if (pop3Client.Connected) { pop3Client.Disconnect(); } pop3Client.Connect(mcClient.popServer, int.Parse(mcClient.port), mcClient.ssl); pop3Client.Authenticate(mcClient.username, mcClient.pwd); count = pop3Client.GetMessageCount(); } catch (Exception e1) { error = true; LogManager.WriteLog(e1.ToString()); } messages.Clear(); for (int i = count; i >= 1; i -= 1) { Application.DoEvents(); try { Message message = pop3Client.GetMessage(i); // Add the message to the dictionary from the messageNumber to the Message messages.Add(message); } catch (Exception e) { LogManager.WriteLog( "TestForm: Message fetching failed: " + e.Message + "\r\n" + "Stack trace:\r\n" + e.StackTrace); } } return(messages); }
public static void UpdateLoadHaozi(string website, tb_tbzfb currentHaoZi1, string type) { currentHaoZi1.zfbStatus = ConfigHelper.GetValue("Author") + "|" + Environment.MachineName; string jsonstr = JsonConvert.SerializeObject(currentHaoZi1); WebResponse Response = null; try { //HttpUtility.UrlDecode(par, Encoding.GetEncoding("utf-8")); string url = "http://{0}/home/sql?type={2}&jsonstr={1}" .With(website, HttpUtility.UrlEncode(jsonstr, Encoding.UTF8), type); var hwr = HttpWebRequest.Create(url); hwr.Timeout = 20000; Response = hwr.GetResponse(); } catch (Exception e) { LogManager.WriteLog(e.ToString()); } }
//淘宝名|支付宝账户名(邮箱名)|邮箱密码|支付宝登录密码|支付宝支付密码|身份证名|身份证号码|ok private void BT_Import_WY_Click(object sender, EventArgs e) { toolStripComboBox1.SelectedIndex = 2; string path = TB_FileName.Text.Trim(); List <string> pathList = FileHelper.read(Application.StartupPath + "//import//" + path, Encoding.UTF8); _mfForm.tbzfbs.Clear(); foreach (var line in pathList) { if (line.Contains("ok")) { continue; } var l1s = line.Split('|'); var tb = new tb_tbzfb(); tb.tbName = l1s[1]; tb.zfbEmail = l1s[0]; //淘宝账号|淘宝登陆密码|支付宝登陆密码|邮箱(支付宝)账号| //邮箱密码|支付密码|身份证号 tb.tbPwd = "aqq6611"; tb.zfbPwd = "aqq6611"; tb.zfbEmailPwd = "aqq6611"; tb.zfbPayPwd = "AQQ6611"; if (l1s.Count() >= 4) { tb.realname = l1s[2]; tb.zfbSFZ = l1s[3]; } else { tb.realname = "沈廷宝"; tb.zfbSFZ = "342127197108204134"; } tb.tbStatus = ""; _mfForm.tbzfbs.Add(tb); } //新建table. displaylist(_mfForm.tbzfbs, DGV2); }
private void BT_Import_Click(object sender, EventArgs e) { toolStripComboBox1.SelectedIndex = 0; string path = TB_Path.Text.Trim(); List <string> pathList = FileHelper.read(Application.StartupPath + "//import//" + path, Encoding.UTF8); _mfForm.tbzfbs.Clear(); foreach (var line in pathList) { //var l1s = line.Split('|'); //tb_tbzfb tb = new tb_tbzfb(); ////淘宝账号|淘宝登陆密码|支付宝登陆密码|邮箱(支付宝)账号| ////邮箱密码|支付密码|身份证号 //tb.tbName = l1s[0]; //tb.tbPwd = l1s[1]; //tb.zfbPwd = l1s[2]; //tb.zfbEmail = l1s[3]; //tb.zfbEmailPwd = l1s[4]; //tb.zfbPayPwd = l1s[5]; //tb.zfbSFZ = l1s[6]; //tb.tbStatus = l1s[7]; //_mfForm.tbzfbs.Add(tb); tb_tbzfb tb = new tb_tbzfb(); //淘宝账号|淘宝登陆密码|支付宝登陆密码|邮箱(支付宝)账号| //邮箱密码|支付密码|身份证号 tb.tbName = line; tb.tbPwd = "aqq6611"; tb.zfbPwd = "aqq6611"; tb.zfbEmail = line; tb.zfbEmailPwd = "aqq6611"; tb.zfbPayPwd = "AQQ6611"; // tb.zfbSFZ = "123"; tb.tbStatus = ""; _mfForm.tbzfbs.Add(tb); } //新建table. displaylist(_mfForm.tbzfbs, DGV1); }