ls 5 years ago
parent
commit
2029253afb
1 changed files with 2 additions and 0 deletions
  1. 2 0
      wechat/request.go

+ 2 - 0
wechat/request.go

@@ -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 {