ls 1 rok pred
rodič
commit
20cca5a125
2 zmenil súbory, kde vykonal 1 pridanie a 2 odobranie
  1. 0 1
      wechat/request.go
  2. 1 1
      wechat/structure.go

+ 0 - 1
wechat/request.go

@@ -96,7 +96,6 @@ func postJSON(url string, args interface{}) (msg myth.HTTPMessage, err error) {
 		return
 	}
 	msg, err = myth.Post(url, "", "", headers, bytes.NewReader(data))
-
 	return
 }
 

+ 1 - 1
wechat/structure.go

@@ -73,7 +73,7 @@ type FormOpenID struct {
 
 // FormCode code
 type FormCode struct {
-	Code string `form:"code"`
+	Code string `form:"code" json:"code"`
 }
 
 // FormSignPackage js sign package