Merge pull request '🎨 优化消息格式' (#52) from hotfix into main
All checks were successful
BuildImage / build-image (push) Successful in 1m38s
All checks were successful
BuildImage / build-image (push) Successful in 1m38s
Reviewed-on: #52
This commit is contained in:
commit
db8c460b42
@ -122,12 +122,12 @@ func Sync() {
|
|||||||
// 组装成一句话
|
// 组装成一句话
|
||||||
msg := []string{"#新好友通知\n"}
|
msg := []string{"#新好友通知\n"}
|
||||||
for wxId, nickname := range newItmes {
|
for wxId, nickname := range newItmes {
|
||||||
msg = append(msg, "微信Id: "+wxId+" -> 昵称: "+nickname)
|
msg = append(msg, "微信Id: "+wxId+"\n昵称: "+nickname)
|
||||||
}
|
}
|
||||||
for _, user := range config.Conf.System.NewFriendNotify.ToUser {
|
for _, user := range config.Conf.System.NewFriendNotify.ToUser {
|
||||||
if user != "" {
|
if user != "" {
|
||||||
// 发送一条新消息
|
// 发送一条新消息
|
||||||
utils.SendMessage(user, "", strings.Join(msg, "\n"), 0)
|
utils.SendMessage(user, "", strings.Join(msg, "\n-------\n"), 0)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user