213
This commit is contained in:
parent
8f42af3716
commit
0f40eedc28
|
@ -4,6 +4,7 @@ import (
|
||||||
"encoding/json"
|
"encoding/json"
|
||||||
"log"
|
"log"
|
||||||
"strconv"
|
"strconv"
|
||||||
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/davecgh/go-spew/spew"
|
"github.com/davecgh/go-spew/spew"
|
||||||
|
@ -31,6 +32,7 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) {
|
||||||
|
|
||||||
log.Println(adstring)
|
log.Println(adstring)
|
||||||
adstring = strconv.QuoteToASCII(adstring)
|
adstring = strconv.QuoteToASCII(adstring)
|
||||||
|
adstring = strings.Replace(adstring, "\\", "", -1)
|
||||||
|
|
||||||
var adlist interface{}
|
var adlist interface{}
|
||||||
if err := json.Unmarshal([]byte(adstring), &adlist); err != nil {
|
if err := json.Unmarshal([]byte(adstring), &adlist); err != nil {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user