|
|
|
@ -486,7 +486,6 @@ func logout(context *gin.Context) {
|
|
|
|
|
// @Success 200 {string} string
|
|
|
|
|
// @Router /oauth2/resetRemainCount [get]
|
|
|
|
|
// @X-EmptyLimit ["userName"]
|
|
|
|
|
// http://10.10.14.187/oauth2/resetRemainCount?userName=sys1
|
|
|
|
|
func resetRemainCount(context *gin.Context) {
|
|
|
|
|
userName := context.Query("userName")
|
|
|
|
|
RedisUtil.DEL(Const.RemainCountRedisPrefix + userName)
|
|
|
|
@ -500,11 +499,10 @@ func resetRemainCount(context *gin.Context) {
|
|
|
|
|
// @Tags 登录验证类
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param code form string true "腾讯返回的code码"
|
|
|
|
|
// @Param code query string true "腾讯返回的code码"
|
|
|
|
|
// @Success 200 {string} string
|
|
|
|
|
// @Router /oauth2/wxLogin [get]
|
|
|
|
|
// @X-EmptyLimit ["code"]
|
|
|
|
|
// http://10.10.14.187/oauth2/wxLogin?code=??
|
|
|
|
|
func wxLogin(context *gin.Context) {
|
|
|
|
|
var code = context.PostForm("code")
|
|
|
|
|
//对接微信,腾讯给的AK+SK
|
|
|
|
@ -537,7 +535,6 @@ func wxLogin(context *gin.Context) {
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Success 200 {string} string
|
|
|
|
|
// @Router /oauth2/wxShowImg [get]
|
|
|
|
|
// http://10.10.14.187/oauth2/wxShowImg
|
|
|
|
|
func wxShowImg(context *gin.Context) {
|
|
|
|
|
url := `https://open.weixin.qq.com/connect/qrconnect?appid=wx3e0449144386938a&redirect_uri=http://fort.edusoa.com:7777/sso/static/jumpWx.html&response_type=code&scope=snsapi_login&state=STATE#wechat_redirect`
|
|
|
|
|
//获取http代码
|
|
|
|
|