...
|
...
|
@@ -25,6 +25,7 @@ func Notification(header *protocol.RequestHeader, request *protocol.PushInfoRequ |
|
|
Ext: request.Ext,
|
|
|
}
|
|
|
)
|
|
|
rsp = &protocol.PushInfoResponse{}
|
|
|
if appInfo, err = repApp.FindOne(map[string]interface{}{"project_key": request.ProjectKey}); err != nil {
|
|
|
log.Error(err)
|
|
|
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 |
|
|
return
|
|
|
}
|
|
|
if len(deviceList) == 0 {
|
|
|
err = protocol.NewSuccessWithMessage(fmt.Sprintf("接受者:%v 未查询到注册的设备信息!", request.Receivers))
|
|
|
err = protocol.NewSuccessWithMessage(fmt.Sprintf("接收人:%v 未查询到注册的设备信息!", request.Receivers))
|
|
|
return
|
|
|
}
|
|
|
for i := range deviceList {
|
...
|
...
|
|