mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-12-15 20:56:35 +08:00
审核中服务增加提交审核时间/已通过域名标绿
This commit is contained in:
@@ -30,8 +30,26 @@ func (this *IndexAction) RunGet(params struct {
|
||||
return
|
||||
}
|
||||
|
||||
// 已审核域名
|
||||
var passedDomains = []string{}
|
||||
if len(serverNamesResp.ServerNamesJSON) > 0 {
|
||||
var passedServerNameConfigs = []*serverconfigs.ServerNameConfig{}
|
||||
err = json.Unmarshal(serverNamesResp.ServerNamesJSON, &passedServerNameConfigs)
|
||||
if err == nil {
|
||||
passedDomains = serverconfigs.PlainServerNames(passedServerNameConfigs)
|
||||
}
|
||||
}
|
||||
this.Data["passedDomains"] = passedDomains
|
||||
|
||||
// 提交审核时间
|
||||
var auditingTime = ""
|
||||
if serverNamesResp.AuditingAt > 0 {
|
||||
auditingTime = timeutil.FormatTime("Y-m-d", serverNamesResp.AuditingAt)
|
||||
}
|
||||
|
||||
serverNamesConfig := []*serverconfigs.ServerNameConfig{}
|
||||
this.Data["isAuditing"] = serverNamesResp.IsAuditing
|
||||
this.Data["auditingTime"] = auditingTime
|
||||
this.Data["auditingResult"] = maps.Map{
|
||||
"isOk": true,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user