From 9c5c58295a36260eb7f45967c8e899725bdc866b Mon Sep 17 00:00:00 2001 From: eson <474420502@qq.com> Date: Thu, 20 Dec 2018 03:42:59 +0800 Subject: [PATCH] 213 --- parser_test.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/parser_test.go b/parser_test.go index 6bab964..243d68c 100644 --- a/parser_test.go +++ b/parser_test.go @@ -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)