This commit is contained in:
huangsimin 2018-12-20 10:43:49 +08:00
parent 2c38a4b53e
commit 59ed70a46c

View File

@ -32,8 +32,8 @@ func (tt *Toutiao) GetSpiderID() int {
func (tt *Toutiao) ToDoParser(adstring string) (presult string, err error) {
defer func() {
if err = recover().(error); err != nil {
log.Println(err)
if ierr := recover(); ierr != nil {
log.Println(ierr)
}
}()