|
@@ -160,11 +160,12 @@ func siteMsg(ctx context.Context, content entity.NewUserSendContent, sendUserLis
|
|
|
nsm.SendStationMessages(ctx, newparm)
|
|
|
}
|
|
|
}
|
|
|
- parm := utility.MessageParam{
|
|
|
- UserIds: strings.Join(mgoIds, ","), Title: msgTitle, Content: msgInfo, Link: pcUrl, AndroidUrl: androidUrl, IosUrl: iosUrl, WeChatUrl: weChatUrl, MsgType: msgType,
|
|
|
+ if len(mgoIds) > 0 {
|
|
|
+ parm := utility.MessageParam{
|
|
|
+ UserIds: strings.Join(mgoIds, ","), Title: msgTitle, Content: msgInfo, Link: pcUrl, AndroidUrl: androidUrl, IosUrl: iosUrl, WeChatUrl: weChatUrl, MsgType: msgType,
|
|
|
+ }
|
|
|
+ nsm.SendStationMessages(ctx, parm)
|
|
|
}
|
|
|
- nsm.SendStationMessages(ctx, parm)
|
|
|
- //
|
|
|
}
|
|
|
func updateState(ctx context.Context, sendUserList []entity.NewUserSendLog) {
|
|
|
ids := []int{}
|