Created
April 22, 2019 11:09
-
-
Save MeiK2333/e639f099284cc9bbea709204d90e4cbd to your computer and use it in GitHub Desktop.
喷子,带狗
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// 专门给喷子,带狗发送的消息通知, 20181206 针对大忽悠事件 | |
func (s *Service) NotifyTroll(c context.Context, mid int64) (err error) { | |
var ok bool | |
if ok, err = s.dao.ExsistsDelMid(c, mid); err != nil || ok { | |
return | |
} | |
title := "评论处理通知" | |
msg := fmt.Sprintf("您好,根据#{关于规范“主播吴织亚切大忽悠事件”相关言论、信息发布的公告}{\"%s\"},您的相关评论已被清理。对于这一事件的讨论请移步公告中告知的区域进行讨论。", s.conf.Reply.Link) | |
if err = s.dao.SendReplyDelMsg(c, mid, title, msg, time.Now()); err != nil { | |
return | |
} | |
return s.dao.SetDelMid(c, mid) | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment