for test
This commit is contained in:
parent
59ed70a46c
commit
f63878ff71
|
@ -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())
|
||||
|
|
Loading…
Reference in New Issue
Block a user