正在显示
1 个修改的文件
包含
7 行增加
和
2 行删除
| @@ -5,6 +5,7 @@ import ( | @@ -5,6 +5,7 @@ import ( | ||
| 5 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/log" | 5 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/log" |
| 6 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/protocol" | 6 | "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/protocol" |
| 7 | protocolx "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/protocol/auth" | 7 | protocolx "gitlab.fjmaimaimai.com/mmm-go/partner/pkg/protocol/auth" |
| 8 | + "strconv" | ||
| 8 | "time" | 9 | "time" |
| 9 | ) | 10 | ) |
| 10 | 11 | ||
| @@ -253,7 +254,7 @@ func (this *AuthController) UCenterRevoke() { | @@ -253,7 +254,7 @@ func (this *AuthController) UCenterRevoke() { | ||
| 253 | this.Resp(msg) | 254 | this.Resp(msg) |
| 254 | }() | 255 | }() |
| 255 | type reqParam struct { | 256 | type reqParam struct { |
| 256 | - UserId int64 `json:"id"` | 257 | + UserId string `json:"id"` |
| 257 | } | 258 | } |
| 258 | var request *reqParam | 259 | var request *reqParam |
| 259 | if err := this.JsonUnmarshal(&request); err != nil { | 260 | if err := this.JsonUnmarshal(&request); err != nil { |
| @@ -265,5 +266,9 @@ func (this *AuthController) UCenterRevoke() { | @@ -265,5 +266,9 @@ func (this *AuthController) UCenterRevoke() { | ||
| 265 | msg = m | 266 | msg = m |
| 266 | return | 267 | return |
| 267 | } | 268 | } |
| 268 | - msg = protocol.NewReturnResponse(auth.UCenterRevoke(nil, request.UserId)) | 269 | + uid, e := strconv.Atoi(request.UserId) |
| 270 | + if e != nil { | ||
| 271 | + log.Error(e, request.UserId) | ||
| 272 | + } | ||
| 273 | + msg = protocol.NewReturnResponse(auth.UCenterRevoke(nil, int64(uid))) | ||
| 269 | } | 274 | } |
-
请 注册 或 登录 后发表评论