Beispiel #1
0
        static void Main(string[] args)
        {
            LotteryTask t = DapperHelper.getOneTask();

            if (t != null)
            {
                Console.WriteLine(string.Format("获取到采集任务:采集网站:{0} 彩票名称:{1}", t.website, t.lotteryType));
                t.state = 1;
                DapperHelper.setTaskState(t);


                Picker taskConsumer = new Picker();
                bool   cmp          = taskConsumer.ConsumeTask(t);

                Console.WriteLine("任务结束,采集结果:" + cmp);

                t.state = 2;
                DapperHelper.setTaskState(t);
                Browser.cd.Quit();
            }
        }