|
|
|
@ -47,7 +47,7 @@ func Routers(r *gin.RouterGroup) {
|
|
|
|
|
//清空登录限制
|
|
|
|
|
r.GET("/resetRemainCount", resetRemainCount)
|
|
|
|
|
//微信登录
|
|
|
|
|
r.GET("/wxLogin", wxLogin)
|
|
|
|
|
r.POST("/wxLogin", wxLogin)
|
|
|
|
|
return
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
@ -495,7 +495,7 @@ func resetRemainCount(context *gin.Context) {
|
|
|
|
|
// @X-EmptyLimit ["code"]
|
|
|
|
|
// http://10.10.14.187/oauth2/wxLogin?code=??
|
|
|
|
|
func wxLogin(context *gin.Context) {
|
|
|
|
|
var code = context.Query("code")
|
|
|
|
|
var code = context.PostForm("code")
|
|
|
|
|
//对接微信,腾讯给的AK+SK
|
|
|
|
|
appId := "wx3e0449144386938a"
|
|
|
|
|
appSecret := "15a37979f34791ca8b920c386afaa0d5"
|
|
|
|
|