优化代码

This commit is contained in:
刘祥超
2021-12-13 10:53:49 +08:00
parent 05f08eeb4c
commit 1a50b01edf
4 changed files with 31 additions and 33 deletions

View File

@@ -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,

View File

@@ -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"
}