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