xiexiaoyuan 2 жил өмнө
parent
commit
8a92ad7442
1 өөрчлөгдсөн 1 нэмэгдсэн , 1 устгасан
  1. 1 1
      controllers/wechat.go

+ 1 - 1
controllers/wechat.go

@@ -292,7 +292,7 @@ func (c *WeChatCommon) WxAppLogin() {
 // @Success 200 {object} wechat.WxLoginResp
 // @router /admin/login [get]
 func (c *WeChatCommon) AdminWeChatLogin() {
-	code := c.GetString("code")
+	code := c.GetString("Code")
 	fmt.Println("code:", code)
 	utils.FileLog.Info("WechatLogin code:%s", code)