uint ->int

This commit is contained in:
renzhiyuan 2024-11-29 20:49:13 +08:00
parent 8180112e5a
commit a0b9e6d297
1 changed files with 1 additions and 1 deletions

View File

@ -51,7 +51,7 @@ func Add(request *backend.CmdAddRequest) (err error) {
_ = mapstructure.Decode(request, &db) _ = mapstructure.Decode(request, &db)
db.Status = common.CMD_STATUS_STOP db.Status = common.CMD_STATUS_STOP
if db.MatchJson == "" { if db.MatchJson == "" {
db.MatchJson = "{}" db.MatchJson = "null"
} }
_, err = croncmdmodel.GetInstance().GetDb().InsertOne(db) _, err = croncmdmodel.GetInstance().GetDb().InsertOne(db)
return return