作者 yangfu

修改:用户中心注销登录

... ... @@ -5,6 +5,7 @@ import (
"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/log"
"gitlab.fjmaimaimai.com/mmm-go/partner/pkg/protocol"
protocolx "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/protocol/auth"
"strconv"
"time"
)
... ... @@ -253,7 +254,7 @@ func (this *AuthController) UCenterRevoke() {
this.Resp(msg)
}()
type reqParam struct {
UserId int64 `json:"id"`
UserId string `json:"id"`
}
var request *reqParam
if err := this.JsonUnmarshal(&request); err != nil {
... ... @@ -265,5 +266,9 @@ func (this *AuthController) UCenterRevoke() {
msg = m
return
}
msg = protocol.NewReturnResponse(auth.UCenterRevoke(nil, request.UserId))
uid, e := strconv.Atoi(request.UserId)
if e != nil {
log.Error(e, request.UserId)
}
msg = protocol.NewReturnResponse(auth.UCenterRevoke(nil, int64(uid)))
}
... ...