From f63878ff71328b9f988f13bd3263c0fc7518038b Mon Sep 17 00:00:00 2001 From: huangsimin Date: Thu, 20 Dec 2018 10:49:00 +0800 Subject: [PATCH] for test --- parser_test.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/parser_test.go b/parser_test.go index 9252bad..56d4b86 100644 --- a/parser_test.go +++ b/parser_test.go @@ -50,9 +50,9 @@ func (tt *Toutiao) ToDoParser(adstring string) (presult string, err error) { data = strings.Trim(data, "\"") unq, _ := strconv.Unquote("\"" + data + "\"") - log.Println(gjson.Unmarshal([]byte(data), &v), gjson.Parse(data).Get("app").Exists()) + log.Println(gjson.Parse(data).Get("app").Exists()) data = unq - log.Println(gjson.Unmarshal([]byte(data), &v), gjson.Parse(data).Get("app").Exists()) + log.Println(gjson.Parse(data).Get("app").Exists()) result := gjson.Parse(data) // log.Println(result.String())