This commit is contained in:
2023-11-01 17:24:30 +08:00
parent 142e755b5d
commit 4818106f01

View File

@@ -1,7 +1,6 @@
package backupEtcFromNE package backupEtcFromNE
import ( import (
"encoding/json"
"fmt" "fmt"
"os" "os"
"strings" "strings"
@@ -40,17 +39,17 @@ func (s *BarProcessor) Execute(data any) (any, error) {
options := data.(cron.JobData) options := data.(cron.JobData)
sysJob := options.SysJob sysJob := options.SysJob
var params BarParams // var params BarParams
err := json.Unmarshal([]byte(sysJob.TargetParams), &params) // err := json.Unmarshal([]byte(sysJob.TargetParams), &params)
if err != nil { // if err != nil {
return nil, err // return nil, err
} // }
log.Infof("Repeat %v Job ID %s", options.Repeat, sysJob.JobID) log.Infof("Repeat %v Job ID %s", options.Repeat, sysJob.JobID)
var nes []dborm.NeInfo var nes []dborm.NeInfo
_, err = dborm.XormGetAllNeInfo(&nes) _, err := dborm.XormGetAllNeInfo(&nes)
if err != nil { if err != nil {
return nil, err return nil, err
} }