213
This commit is contained in:
parent
4200f114ec
commit
9c5c58295a
|
@ -47,9 +47,10 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) {
|
|||
for _, data := range adlist {
|
||||
|
||||
data = strings.Trim(data, "\"")
|
||||
unq, _ := strconv.Unquote(data)
|
||||
unq, _ := strconv.Unquote("\"" + data + "\"")
|
||||
data = unq
|
||||
unq, _ = strconv.Unquote("\"" + data + "\"")
|
||||
data = unq
|
||||
|
||||
var gv interface{}
|
||||
gjson.Unmarshal([]byte(data), &gv)
|
||||
spew.Dump(gv)
|
||||
|
|
Loading…
Reference in New Issue
Block a user