master
huanghai 5 years ago
parent e1e96cb312
commit 4e8d3db0a3

@ -379,7 +379,7 @@ func authorizeGet(context *gin.Context) {
//检查这个client_id是不是经过授权
client, err := RedisStorage.OAuth2RedisStorage.GetClient(paraClientId)
if err != nil {
if err != nil || client == nil {
msg := "传入的client_id不在系统的允许范围内"
context.JSON(http.StatusOK, map[string]interface{}{"success": false, "msg": msg})
return

Loading…
Cancel
Save