mirror of
https://github.com/openimsdk/open-im-server.git
synced 2025-04-06 04:15:46 +08:00
signal
This commit is contained in:
parent
52d8ab5389
commit
d881ab5fea
@ -123,15 +123,15 @@ func MsgToUser(pushMsg *pbPush.PushMsgReq) {
|
|||||||
if offlinePusher == nil {
|
if offlinePusher == nil {
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
opts, err := GetOfflinePushOpts(pushMsg)
|
|
||||||
if err != nil {
|
|
||||||
log.NewError(pushMsg.OperationID, utils.GetSelfFuncName(), "GetOfflinePushOpts failed", pushMsg, err.Error())
|
|
||||||
}
|
|
||||||
// save invitation info for offline push
|
// save invitation info for offline push
|
||||||
if err := db.DB.HandleSignalInfo(pushMsg.MsgData); err != nil {
|
if err := db.DB.HandleSignalInfo(pushMsg.MsgData); err != nil {
|
||||||
log.NewError(pushMsg.OperationID, utils.GetSelfFuncName(), err.Error(), pushMsg.MsgData)
|
log.NewError(pushMsg.OperationID, utils.GetSelfFuncName(), err.Error(), pushMsg.MsgData)
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
|
opts, err := GetOfflinePushOpts(pushMsg)
|
||||||
|
if err != nil {
|
||||||
|
log.NewError(pushMsg.OperationID, utils.GetSelfFuncName(), "GetOfflinePushOpts failed", pushMsg, err.Error())
|
||||||
|
}
|
||||||
log.NewInfo(pushMsg.OperationID, utils.GetSelfFuncName(), UIDList, content, jsonCustomContent, "opts:", opts)
|
log.NewInfo(pushMsg.OperationID, utils.GetSelfFuncName(), UIDList, content, jsonCustomContent, "opts:", opts)
|
||||||
pushResult, err := offlinePusher.Push(UIDList, content, jsonCustomContent, pushMsg.OperationID, opts)
|
pushResult, err := offlinePusher.Push(UIDList, content, jsonCustomContent, pushMsg.OperationID, opts)
|
||||||
log.NewDebug(pushMsg.OperationID, utils.GetSelfFuncName(), "offline pushResult: ", pushResult)
|
log.NewDebug(pushMsg.OperationID, utils.GetSelfFuncName(), "offline pushResult: ", pushResult)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user