|
@@ -5,11 +5,13 @@ import (
|
|
|
"encoding/json"
|
|
|
"encoding/xml"
|
|
|
"errors"
|
|
|
+ "fmt"
|
|
|
|
|
|
"git.chuangxin1.com/cx/myth"
|
|
|
)
|
|
|
|
|
|
func checkJSONError(msg myth.HTTPMessage) (jq *myth.JSONQuery, err error) {
|
|
|
+ fmt.Println(msg.StatusCode, string(msg.Body))
|
|
|
if msg.StatusCode == 200 {
|
|
|
jq, err = msg.JSONQuery()
|
|
|
if err != nil {
|