Example #1
0
        public void DoRefresh(int id)
        {
            set("processLink", to(Process, id));

            StringBuilder sb = LogCacher.GetNewImportLog("log" + ctx.viewer.Id);
            ImportState   ts = new ImportState();

            ts.TemplateId = id;
            ts.Log        = sb;

            new Thread(ImportUtil.BeginImport).Start(ts);
        }
Example #2
0
        public virtual void DoRefresh(long id)
        {
            if (id <= 0)
            {
                echoRedirect("请先选择模板");
                return;
            }

            set("processLink", to(Process, id));

            SpiderTemplate s  = templateService.GetById(id);
            TemplateAndLog tl = new TemplateAndLog();

            tl.Template = s;

            StringBuilder sb = LogCacher.GetNewSpiderLog("log" + ctx.viewer.Id);

            tl.log = sb;

            new Thread(beginRefresh).Start(tl);
        }
Example #3
0
        public virtual void Process(long id)
        {
            StringBuilder sb = LogCacher.GetSpiderLog("log" + ctx.viewer.Id);

            echoText(reverseText(sb.ToString()));
        }
Example #4
0
        public void Process(int id)
        {
            StringBuilder sb = LogCacher.GetImportLog("log" + ctx.viewer.Id);

            echoText(sb.ToString());
        }