mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-24 22:16:36 +08:00
优化代码
This commit is contained in:
@@ -170,7 +170,7 @@ func (this *HTTPLocationDAO) ComposeLocationConfig(tx *dbs.Tx, locationId int64,
|
||||
|
||||
config := &serverconfigs.HTTPLocationConfig{}
|
||||
config.Id = int64(location.Id)
|
||||
config.IsOn = location.IsOn == 1
|
||||
config.IsOn = location.IsOn
|
||||
config.Description = location.Description
|
||||
config.Name = location.Name
|
||||
config.Pattern = location.Pattern
|
||||
|
||||
Reference in New Issue
Block a user