节点日志计数从1开始(以前是0)

This commit is contained in:
刘祥超
2021-06-14 20:39:39 +08:00
parent 8db39a6b36
commit 7d3328f75b

View File

@@ -68,6 +68,7 @@ func (this *NodeLogDAO) CreateLog(tx *dbs.Tx, nodeRole nodeconfigs.NodeRole, nod
op.CreatedAt = createdAt
op.Day = timeutil.FormatTime("Ymd", createdAt)
op.Hash = hash
op.Count = 1
err = this.Save(tx, op)
return err
}