Exemplo n.º 1
0
        private bool IsGetTaskOk(string tbmodel, out bool isGetTaskOK)
        {
            string host        = ConfigHelper.GetValue("WebSite");
            string name        = ConfigHelper.GetValue("name");
            string pwd         = ConfigHelper.GetValue("pwd");
            int    GetHaoZiNum = int.Parse(ConfigHelper.GetValue("GetHaoZiNum"));

            if (tbmodel == tbModel.shopv2.ToString())
            {
                isGetTaskOK = false;
                return(false);
            }
            tbzfbBll bll  = new tbzfbBll();
            var      list = bll.GetHaoZi(host, name, pwd, GetHaoZiNum, tbmodel);

            isGetTaskOK = list.Count > 0;

            if (!isGetTaskOK)
            {
                return(true);
            }
            HaoziHelper.logAccount(list, infilename, outfilename);


            return(isGetTaskOK);
        }
Exemplo n.º 2
0
        private void BT_export_Click(object sender, EventArgs e)
        {
            string host        = ConfigHelper.GetValue("WebSite");
            string name        = ConfigHelper.GetValue("name");
            string pwd         = ConfigHelper.GetValue("pwd");
            int    GetHaoZiNum = int.Parse(ConfigHelper.GetValue("GetHaoZiNum"));

            tbzfbBll bll  = new tbzfbBll();
            var      list = bll.GetHaoZi(host, name, pwd, GetHaoZiNum, tbModel.shopv2.ToString());

            HaoziHelper.logAccount(list, "主-待购物账号.txt", "主-已购物账号.txt");
        }