forked from lxh/go-wxhelper
Merge pull request '🎨 修改邀请入群消息默认响应消息为配置消息' (#104) from hotfix into main
Reviewed-on: lxh/go-wxhelper#104
This commit is contained in:
commit
8e2663b85d
@ -141,6 +141,6 @@ resource:
|
||||
type: image
|
||||
path: D:\Share\wordcloud\%s
|
||||
# 邀请入群消息回复
|
||||
invitationJoinGroup:
|
||||
invitation-join-group:
|
||||
type: text
|
||||
path: "您的邀请消息已收到啦,正在通知我的主人来同意请求。在我加群之后将会进行初始化操作,直到收到我主动发送的消息就是初始化完成咯,在那之前请耐心等待喔~"
|
||||
|
@ -15,7 +15,7 @@ import (
|
||||
// @param m
|
||||
func NotifyInvitationJoinGroup(m *plugin.MessageContext) {
|
||||
// 先回复一条固定消息
|
||||
if conf, e := config.Conf.Resource["invitationJoinGroup"]; e {
|
||||
if conf, e := config.Conf.Resource["invitation-join-group"]; e {
|
||||
// 发送一条新消息
|
||||
switch conf.Type {
|
||||
case "text":
|
||||
@ -30,8 +30,8 @@ func NotifyInvitationJoinGroup(m *plugin.MessageContext) {
|
||||
}
|
||||
}
|
||||
|
||||
// 如果是邀请进群,推送到配置的用户
|
||||
if flag, dec := m.IsInvitationJoinGroup(); flag {
|
||||
// 推送到配置的用户
|
||||
_, dec := m.IsInvitationJoinGroup()
|
||||
for _, user := range config.Conf.System.NewFriendNotify.ToUser {
|
||||
if user != "" {
|
||||
// 发送一条新消息
|
||||
@ -40,7 +40,6 @@ func NotifyInvitationJoinGroup(m *plugin.MessageContext) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// NotifyRemoveFromChatroom
|
||||
// @description: 被移除群聊通知到配置用户
|
||||
|
Loading…
Reference in New Issue
Block a user