This commit is contained in:
eson 2018-12-20 01:53:21 +08:00
parent 8f42af3716
commit 0f40eedc28

View File

@ -4,6 +4,7 @@ import (
"encoding/json"
"log"
"strconv"
"strings"
"testing"
"github.com/davecgh/go-spew/spew"
@ -31,6 +32,7 @@ func (tt *Toutiao) ToDoParser(adstring string) (string, error) {
log.Println(adstring)
adstring = strconv.QuoteToASCII(adstring)
adstring = strings.Replace(adstring, "\\", "", -1)
var adlist interface{}
if err := json.Unmarshal([]byte(adstring), &adlist); err != nil {