213
This commit is contained in:
parent
8f42af3716
commit
0f40eedc28
|
@ -4,6 +4,7 @@ import (
|
|||
"encoding/json"
|
||||
"log"
|
||||
"strconv"
|
||||
"strings"
|
||||
"testing"
|
||||
|
||||
"github.com/davecgh/go-spew/spew"
|
||||
|
@ -31,6 +32,7 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) {
|
|||
|
||||
log.Println(adstring)
|
||||
adstring = strconv.QuoteToASCII(adstring)
|
||||
adstring = strings.Replace(adstring, "\\", "", -1)
|
||||
|
||||
var adlist interface{}
|
||||
if err := json.Unmarshal([]byte(adstring), &adlist); err != nil {
|
||||
|
|
Loading…
Reference in New Issue
Block a user