|
@@ -48,8 +48,13 @@ func Notification(header *protocol.RequestHeader, request *protocol.PushInfoRequ |
|
@@ -48,8 +48,13 @@ func Notification(header *protocol.RequestHeader, request *protocol.PushInfoRequ |
|
48
|
return
|
48
|
return
|
|
49
|
}
|
49
|
}
|
|
50
|
if extInfo, ok := appInfo.GetExtInfo(); ok {
|
50
|
if extInfo, ok := appInfo.GetExtInfo(); ok {
|
|
|
|
51
|
+ if len(extInfo.Intent) > 0 {
|
|
51
|
requestOriginal.Ext["intent"] = extInfo.Intent
|
52
|
requestOriginal.Ext["intent"] = extInfo.Intent
|
|
52
|
}
|
53
|
}
|
|
|
|
54
|
+ if len(extInfo.Sound) > 0 {
|
|
|
|
55
|
+ requestOriginal.Ext["sound"] = extInfo.Sound
|
|
|
|
56
|
+ }
|
|
|
|
57
|
+ }
|
|
53
|
if len(deviceList) == 0 {
|
58
|
if len(deviceList) == 0 {
|
|
54
|
err = protocol.NewSuccessWithMessage(fmt.Sprintf("接收人:%v 未查询到注册的设备信息!", request.Receivers))
|
59
|
err = protocol.NewSuccessWithMessage(fmt.Sprintf("接收人:%v 未查询到注册的设备信息!", request.Receivers))
|
|
55
|
return
|
60
|
return
|