|
@@ -25,6 +25,7 @@ func Notification(header *protocol.RequestHeader, request *protocol.PushInfoRequ |
|
@@ -25,6 +25,7 @@ func Notification(header *protocol.RequestHeader, request *protocol.PushInfoRequ |
25
|
Ext: request.Ext,
|
25
|
Ext: request.Ext,
|
26
|
}
|
26
|
}
|
27
|
)
|
27
|
)
|
|
|
28
|
+ rsp = &protocol.PushInfoResponse{}
|
28
|
if appInfo, err = repApp.FindOne(map[string]interface{}{"project_key": request.ProjectKey}); err != nil {
|
29
|
if appInfo, err = repApp.FindOne(map[string]interface{}{"project_key": request.ProjectKey}); err != nil {
|
29
|
log.Error(err)
|
30
|
log.Error(err)
|
30
|
err = protocol.NewCustomMessage(1, fmt.Sprintf("project_key:%v not found", request.ProjectKey))
|
31
|
err = protocol.NewCustomMessage(1, fmt.Sprintf("project_key:%v not found", request.ProjectKey))
|
|
@@ -36,7 +37,7 @@ func Notification(header *protocol.RequestHeader, request *protocol.PushInfoRequ |
|
@@ -36,7 +37,7 @@ func Notification(header *protocol.RequestHeader, request *protocol.PushInfoRequ |
36
|
return
|
37
|
return
|
37
|
}
|
38
|
}
|
38
|
if len(deviceList) == 0 {
|
39
|
if len(deviceList) == 0 {
|
39
|
- err = protocol.NewSuccessWithMessage(fmt.Sprintf("接受者:%v 未查询到注册的设备信息!", request.Receivers))
|
40
|
+ err = protocol.NewSuccessWithMessage(fmt.Sprintf("接收人:%v 未查询到注册的设备信息!", request.Receivers))
|
40
|
return
|
41
|
return
|
41
|
}
|
42
|
}
|
42
|
for i := range deviceList {
|
43
|
for i := range deviceList {
|