|
|
|
@ -227,7 +227,6 @@ func accessToken(context *gin.Context) {
|
|
|
|
|
refreshToken := resp.Output["refresh_token"].(string)
|
|
|
|
|
tokenType := resp.Output["token_type"].(string)
|
|
|
|
|
identityIdInt, _ := strconv.Atoi(identityId)
|
|
|
|
|
//personIdInt, _ := strconv.Atoi(personId)
|
|
|
|
|
//记录refresh_token与identity_id,person_id关系
|
|
|
|
|
personStr := "{\"identity_id\":\"" + identityId + "\",\"person_id\":\"" + personId + "\",\"device_id\":\"" + deviceId + "\"}"
|
|
|
|
|
k := ConfigUtil.OAuth2RedisKeyPrefix + ":refresh_token_vs_person:" + refreshToken
|
|
|
|
@ -507,9 +506,9 @@ func resetRemainCount(context *gin.Context) {
|
|
|
|
|
// @Tags 登录验证类
|
|
|
|
|
// @Accept application/x-www-form-urlencoded
|
|
|
|
|
// @Produce json
|
|
|
|
|
// @Param code query string true "腾讯返回的code码"
|
|
|
|
|
// @Param code formData string true "腾讯返回的code码"
|
|
|
|
|
// @Success 200 {string} string
|
|
|
|
|
// @Router /oauth2/wxLogin [get]
|
|
|
|
|
// @Router /oauth2/wxLogin [post]
|
|
|
|
|
// @X-EmptyLimit ["code"]
|
|
|
|
|
func wxLogin(context *gin.Context) {
|
|
|
|
|
var code = context.PostForm("code")
|
|
|
|
|