File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/main/java/com/shinemo/mpush/alloc Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ public void handle(HttpExchange httpExchange) throws IOException {
7474 private void sendPush (Map <String , Object > params ) {
7575 String userId = (String ) params .get ("userId" );
7676 String hello = (String ) params .get ("hello" );
77- boolean broadcast = (Boolean ) params .get ("broadcast" );
77+ Boolean broadcast = (Boolean ) params .get ("broadcast" );
7878 String condition = (String ) params .get ("condition" );
7979
8080
@@ -89,7 +89,7 @@ private void sendPush(Map<String, Object> params) {
8989 pushSender .send (PushContext
9090 .build (pushMsg )
9191 .setUserId (Strings .isBlank (userId ) ? null : userId )
92- .setBroadcast (broadcast )
92+ .setBroadcast (broadcast != null && broadcast )
9393 .setCondition (Strings .isBlank (condition ) ? null : condition )
9494 .setCallback (new PushCallback () {
9595 @ Override
You can’t perform that action at this time.
0 commit comments