mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-27 20:49:03 +08:00
refactor: 调整包引用 (#6758)
This commit is contained in:
parent
16fd804e93
commit
425892cfc4
@ -21,7 +21,6 @@ import (
|
|||||||
"github.com/1Panel-dev/1Panel/backend/utils/common"
|
"github.com/1Panel-dev/1Panel/backend/utils/common"
|
||||||
"github.com/1Panel-dev/1Panel/backend/utils/systemctl"
|
"github.com/1Panel-dev/1Panel/backend/utils/systemctl"
|
||||||
"github.com/1Panel-dev/1Panel/backend/utils/xpack"
|
"github.com/1Panel-dev/1Panel/backend/utils/xpack"
|
||||||
"github.com/1Panel-dev/1Panel/backend/xpack/utils/alert"
|
|
||||||
"github.com/jinzhu/copier"
|
"github.com/jinzhu/copier"
|
||||||
"github.com/robfig/cron/v3"
|
"github.com/robfig/cron/v3"
|
||||||
|
|
||||||
@ -644,7 +643,7 @@ func handleAlert(stdout, clamName string, clamId uint) {
|
|||||||
EntryID: clamId,
|
EntryID: clamId,
|
||||||
Param: strconv.Itoa(infectedFiles),
|
Param: strconv.Itoa(infectedFiles),
|
||||||
}
|
}
|
||||||
err := alert.PushAlert(pushAlert)
|
err := xpack.PushAlert(pushAlert)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
global.LOG.Errorf("clamdscan push failed, err: %v", err)
|
global.LOG.Errorf("clamdscan push failed, err: %v", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user