Browse Source

update wechat mini

ls 1 year ago
parent
commit
20cca5a125
2 changed files with 1 additions and 2 deletions
  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