mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2026-01-06 20:15:48 +08:00
优化代码
This commit is contained in:
@@ -467,7 +467,7 @@ func (this *CreateAction) RunPost(params struct {
|
||||
AccessLogJSON: []byte(`{
|
||||
"isPrior": false,
|
||||
"isOn": true,
|
||||
"fields": [],
|
||||
"fields": [6, 7],
|
||||
"status1": true,
|
||||
"status2": true,
|
||||
"status3": true,
|
||||
|
||||
@@ -191,8 +191,8 @@ func (this *userMustAuth) modules(actionPtr actions.ActionWrapper, adminId int64
|
||||
var countNodeLogs = countNodeLogsResp.Count
|
||||
if countNodeLogs > 0 {
|
||||
countUnreadNodeLogs = countNodeLogs
|
||||
if countUnreadNodeLogs >= 1000 {
|
||||
countUnreadNodeLogs = 999
|
||||
if countUnreadNodeLogs >= 100 {
|
||||
countUnreadNodeLogs = 99
|
||||
}
|
||||
nodeLogsType = "unread"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user