This commit is contained in:
eson 2018-12-20 03:32:05 +08:00
parent 9375f4fd98
commit 9f3e28c9e4

View File

@ -45,7 +45,7 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) {
for _, data := range adlist {
data = strings.Trim(data, "\"")
unq, _ := strconv.Unquote("\"" + data + "\"")
unq, _ = strconv.Unquote("\"" + unq + "\"")
unq, _ = strconv.Unquote(unq)
data = unq
var v interface{}
json.Unmarshal([]byte(data), &v)