mirror of
https://github.com/TeaOSLab/EdgeAPI.git
synced 2025-12-08 10:30:24 +08:00
阶段性提交
This commit is contained in:
@@ -486,6 +486,10 @@ func (this *ServerDAO) UpdateServerNames(serverId int64, serverNames []byte) err
|
||||
serverNames = []byte("[]")
|
||||
}
|
||||
op.ServerNames = serverNames
|
||||
err := this.Save(op)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return this.createEvent()
|
||||
}
|
||||
|
||||
@@ -503,7 +507,11 @@ func (this *ServerDAO) UpdateAuditingServerNames(serverId int64, isAuditing bool
|
||||
} else {
|
||||
op.AuditingServerNames = auditingServerNamesJSON
|
||||
}
|
||||
|
||||
op.AuditingResult = `{"isOk":true}`
|
||||
err := this.Save(op)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return this.createEvent()
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user