Browse Source

Merge branch 'feature/migrate_wecht_msg' into debug

xiexiaoyuan 2 years ago
parent
commit
95b35e3504
1 changed files with 1 additions and 1 deletions
  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)