This commit is contained in:
huangsimin 2018-12-20 10:49:00 +08:00
parent 59ed70a46c
commit f63878ff71

View File

@ -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())