优化代码

This commit is contained in:
GoEdgeLab
2022-10-19 19:55:51 +08:00
parent 14f3702bb5
commit 2ba2ef3fa0
2 changed files with 3 additions and 3 deletions

View File

@@ -59,7 +59,7 @@ func (this *IndexAction) RunGet(params struct {
}
var providerMaps = []maps.Map{}
for _, provider := range providersResp.DnsProviders {
dataUpdatedTime := ""
var dataUpdatedTime = ""
if provider.DataUpdatedAt > 0 {
dataUpdatedTime = timeutil.FormatTime("Y-m-d H:i:s", provider.DataUpdatedAt)
}
@@ -72,7 +72,7 @@ func (this *IndexAction) RunGet(params struct {
this.ErrorPage(err)
return
}
countDomains := countDomainsResp.Count
var countDomains = countDomainsResp.Count
providerMaps = append(providerMaps, maps.Map{
"id": provider.Id,