pull/236/head
wangchuxiao 3 years ago
parent 9b4890a99f
commit c46f574aa8

@ -157,12 +157,12 @@ func joinGroups(operationID, userID, userName string, groupIDList []string) {
log.NewError(req.OperationID, utils.GetSelfFuncName(), resp) log.NewError(req.OperationID, utils.GetSelfFuncName(), resp)
continue continue
} }
onboardingProcessNotification(operationID, userID, groupID) onboardingProcessNotification(operationID, userID, groupID, userName)
} }
} }
// welcome user join department notification // welcome user join department notification
func onboardingProcessNotification(operationID, userID, groupID string) { func onboardingProcessNotification(operationID, userID, groupID, userName string) {
defer func() { defer func() {
log.NewInfo(operationID, utils.GetSelfFuncName(), userID, groupID) log.NewInfo(operationID, utils.GetSelfFuncName(), userID, groupID)
}() }()
@ -174,10 +174,11 @@ func onboardingProcessNotification(operationID, userID, groupID string) {
// log.NewError(operationID, utils.GetSelfFuncName(), err.Error(), "proto marshal failed") // log.NewError(operationID, utils.GetSelfFuncName(), err.Error(), "proto marshal failed")
// return // return
//} //}
welcomeString := fmt.Sprintf("欢迎%s加入部门", userName)
notification := &msg.NotificationMsg{ notification := &msg.NotificationMsg{
SendID: userID, SendID: userID,
RecvID: groupID, RecvID: groupID,
Content: []byte("大家来欢迎我加入部门"), Content: []byte(welcomeString),
MsgFrom: constant.UserMsgType, MsgFrom: constant.UserMsgType,
ContentType: constant.Text, ContentType: constant.Text,
SessionType: constant.GroupChatType, SessionType: constant.GroupChatType,

Loading…
Cancel
Save