Ver Fonte

feat:群公告类型转换

zhangxinlei1996 há 2 anos atrás
pai
commit
f77e83c3e9
1 ficheiros alterados com 2 adições e 2 exclusões
  1. 2 2
      api/messagecenter/internal/logic/messageaddlogic.go

+ 2 - 2
api/messagecenter/internal/logic/messageaddlogic.go

@@ -53,9 +53,9 @@ func (l *MessageAddLogic) MessageAdd(req *types.MessageEntity) (*types.CommonRes
 		OwnType:     req.OwnType,
 		Title:       req.Title,
 		SendId:      quitl.Int64All(encrypt.SE.Decode4Hex(req.SendId)),
-		Content:     quitl.ObjToString(quitl.If(req.Type == 3 || req.Type == 4, fsw.Repl(req.Content), htmlFilter.Sanitize(fsw.Repl(req.Content)))),
+		Content:     quitl.ObjToString(quitl.If(req.Type == 3 || req.Type == 4 || req.Type == 5, fsw.Repl(req.Content), htmlFilter.Sanitize(fsw.Repl(req.Content)))),
 		Item:        req.Item,
-		Type:        req.Type,
+		Type:        quitl.Int64All(quitl.If(req.Type == 5, 1, req.Type)),
 		Link:        req.Link,
 		Appid:       req.Appid,
 		ItemType:    req.ItemType,