fix 执行爬虫错误的问题

This commit is contained in:
陈景阳
2019-11-26 15:26:01 +08:00
parent 0a94399da2
commit 97e5d5b65f
3 changed files with 15 additions and 7 deletions

View File

@@ -61,6 +61,7 @@ func (t *Task) Save() error {
defer s.Close()
t.UpdateTs = time.Now()
if err := c.UpdateId(t.Id, t); err != nil {
log.Errorf("update task error: %s", err.Error())
debug.PrintStack()
return err
}