mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-15 07:06:35 +08:00
优化代码
This commit is contained in:
@@ -45,8 +45,8 @@ func (this *HTTPAccessLogPolicyService) ListEnabledHTTPAccessLogPolicies(ctx con
|
||||
Name: policy.Name,
|
||||
IsOn: policy.IsOn == 1,
|
||||
Type: policy.Type,
|
||||
OptionsJSON: []byte(policy.Options),
|
||||
CondsJSON: []byte(policy.Conds),
|
||||
OptionsJSON: policy.Options,
|
||||
CondsJSON: policy.Conds,
|
||||
IsPublic: policy.IsPublic == 1,
|
||||
})
|
||||
}
|
||||
@@ -123,8 +123,8 @@ func (this *HTTPAccessLogPolicyService) FindEnabledHTTPAccessLogPolicy(ctx conte
|
||||
Name: policy.Name,
|
||||
IsOn: policy.IsOn == 1,
|
||||
Type: policy.Type,
|
||||
OptionsJSON: []byte(policy.Options),
|
||||
CondsJSON: []byte(policy.Conds),
|
||||
OptionsJSON: policy.Options,
|
||||
CondsJSON: policy.Conds,
|
||||
IsPublic: policy.IsPublic == 1,
|
||||
}}, nil
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user