【修改】配置文件参数说明

This commit is contained in:
PandaGoAdmin
2022-01-20 08:02:42 +08:00
parent c8449e0432
commit c6ebe89865
3 changed files with 6 additions and 4 deletions

View File

@@ -52,7 +52,7 @@ func InitRouter() *gin.Engine {
router.Use(middleware.Cors())
}
// 流量限制
if serverConfig.Rate.IsRate {
if serverConfig.Rate.Enable {
router.Use(middleware.Rate())
}
// api接口