|
@@ -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,
|