You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
22 lines
389 B
22 lines
389 B
package http |
|
|
|
import ( |
|
"go-common/library/conf/env" |
|
bm "go-common/library/net/http/blademaster" |
|
) |
|
|
|
var ( |
|
_EmptyBlacklistValue = make(map[int64]struct{}) |
|
) |
|
|
|
func blacklist(c *bm.Context) { |
|
black := spcSvc.BlacklistValue |
|
if env.DeployEnv == env.DeployEnvProd { |
|
if len(black) == 0 { |
|
black = _EmptyBlacklistValue |
|
} |
|
} else { |
|
black = _EmptyBlacklistValue |
|
} |
|
c.JSON(black, nil) |
|
}
|
|
|