Sfoglia il codice sorgente

code改回大些开头

xiexiaoyuan 2 anni fa
parent
commit
8a92ad7442
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  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)