修复发送站内消息时将标题作为内容的Bug

This commit is contained in:
刘祥超
2023-03-28 16:25:18 +08:00
parent f0667abe55
commit 138eddf771

View File

@@ -155,7 +155,7 @@ func (this *MessageDAO) CreateNodeMessage(tx *dbs.Tx, role string, clusterId int
// CreateMessage 创建普通消息 // CreateMessage 创建普通消息
func (this *MessageDAO) CreateMessage(tx *dbs.Tx, adminId int64, userId int64, messageType MessageType, level string, subject string, body string, paramsJSON []byte) error { func (this *MessageDAO) CreateMessage(tx *dbs.Tx, adminId int64, userId int64, messageType MessageType, level string, subject string, body string, paramsJSON []byte) error {
body = utils.LimitString(subject, 100) subject = utils.LimitString(subject, 100)
body = utils.LimitString(body, 1024) body = utils.LimitString(body, 1024)
var op = NewMessageOperator() var op = NewMessageOperator()