|
|
@@ -56,6 +56,8 @@ public class JGMessageHelper implements InitializingBean, DisposableBean{
|
|
|
try {
|
|
|
URI uri = new URI(host + clientConfig.get(ClientConfig.PUSH_PATH));
|
|
|
PushPayload payload = messageAdapter.getPushPayload();
|
|
|
+ if(payload == null) System.out.println("*******************shit*********************");
|
|
|
+ System.out.println(payload.toJSON());
|
|
|
client.sendRequest(HttpMethod.POST, payload.toString(), uri, new NettyHttpClient.BaseCallback() {
|
|
|
@Override
|
|
|
public void onSucceed(ResponseWrapper responseWrapper) {
|
|
|
@@ -94,8 +96,8 @@ public class JGMessageHelper implements InitializingBean, DisposableBean{
|
|
|
.setTitle(mb.getMessageTitle())
|
|
|
.setMsgContent(mb.getMessageBody())
|
|
|
.addExtra(MESSAGE_ID,mb.getMessageId())
|
|
|
- .addExtra(RESOURCE_ID,mb.getResourceId())
|
|
|
- .addExtra(RESOURCE_TYPE, mb.getResourceType())
|
|
|
+ .addExtra(RESOURCE_ID,mb.getResourceId() == null ? "" : mb.getResourceId())
|
|
|
+ .addExtra(RESOURCE_TYPE, mb.getResourceType()== null ? "": mb.getResourceType())
|
|
|
.build())
|
|
|
.build());
|
|
|
send(ma);
|