for test
This commit is contained in:
parent
faac5ca167
commit
2c38a4b53e
|
@ -29,14 +29,16 @@ func (tt *Toutiao) GetSpiderID() int {
|
|||
return 1000073
|
||||
}
|
||||
|
||||
func (tt *Toutiao) ToDoParser(adstring string) (string, error) {
|
||||
func (tt *Toutiao) ToDoParser(adstring string) (presult string, err error) {
|
||||
|
||||
// adstring = strconv.QuoteToASCII(adstring)
|
||||
// adstring = strings.Replace(adstring, "\\", "", -1)
|
||||
// log.Println(adstring)
|
||||
defer func() {
|
||||
if err = recover().(error); err != nil {
|
||||
log.Println(err)
|
||||
}
|
||||
}()
|
||||
|
||||
var adlist []string
|
||||
if err := json.Unmarshal([]byte(adstring), &adlist); err != nil {
|
||||
if err = json.Unmarshal([]byte(adstring), &adlist); err != nil {
|
||||
log.Println(err)
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user