This commit is contained in:
huangsimin 2018-12-20 10:38:04 +08:00
parent 992aba1b3c
commit faac5ca167

View File

@ -44,7 +44,7 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) {
log.Println("test json -----------------------")
var v interface{}
log.Println(gjson.Unmarshal([]byte(data), &v), gjson.Parse(data).Get("app").Exists())
// log.Println(gjson.Unmarshal([]byte(data), &v), gjson.Parse(data).Get("app").Exists())
data = strings.Trim(data, "\"")
unq, _ := strconv.Unquote("\"" + data + "\"")