This commit is contained in:
eson 2018-12-20 03:42:59 +08:00
parent 4200f114ec
commit 9c5c58295a

View File

@ -47,9 +47,10 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) {
for _, data := range adlist { for _, data := range adlist {
data = strings.Trim(data, "\"") data = strings.Trim(data, "\"")
unq, _ := strconv.Unquote(data) unq, _ := strconv.Unquote("\"" + data + "\"")
data = unq
unq, _ = strconv.Unquote("\"" + data + "\"")
data = unq data = unq
var gv interface{} var gv interface{}
gjson.Unmarshal([]byte(data), &gv) gjson.Unmarshal([]byte(data), &gv)
spew.Dump(gv) spew.Dump(gv)