Skip to content

Commit

Permalink
add log
Browse files Browse the repository at this point in the history
  • Loading branch information
黄志磊 committed Feb 19, 2016
1 parent 731cabe commit 3118e6a
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 71 deletions.
Expand Up @@ -43,7 +43,7 @@ public NotificationPushPayload setContent(String content) {


/*****以下非必填**/ /*****以下非必填**/
private Long nid; //主要用于聚合通知,非必填 private Long nid; //主要用于聚合通知,非必填
private byte flags; //特性字段。 0x01:声音 0x02:震动 0x03:闪灯 private Byte flags; //特性字段。 0x01:声音 0x02:震动 0x03:闪灯
private String largeIcon; // 大图标 private String largeIcon; // 大图标
private String ticker; //和title一样 private String ticker; //和title一样
private Integer number; // private Integer number; //
Expand Down Expand Up @@ -84,7 +84,11 @@ public NotificationPushPayload setNumber(Integer number) {
} }


public NotificationPushPayload setFlag(Flag flag) { public NotificationPushPayload setFlag(Flag flag) {
this.flags |= flag.getValue(); if(this.flags == null){
this.flags = flag.getValue();
}else{
this.flags = (byte) (this.flags.byteValue()|flag.getValue());
}
return this; return this;
} }


Expand Down

This file was deleted.

Expand Up @@ -38,7 +38,7 @@ public void addOrUpdate(String fullPath,GatewayServerApplication application){
application2Client.put(application, client); application2Client.put(application, client);
ip2Client.put(application.getIp(), client); ip2Client.put(application.getIp(), client);
}catch(Exception e){ }catch(Exception e){

log.error("addOrUpdate:{},{}",fullPath,application,e);
} }
printList(); printList();
} }
Expand Down
Expand Up @@ -20,7 +20,7 @@ public static void main(String[] args) throws Exception {
int index = (int) ((Math.random() % serverList.size()) * serverList.size()); int index = (int) ((Math.random() % serverList.size()) * serverList.size());
ConnectionServerApplication server = serverList.get(index); ConnectionServerApplication server = serverList.get(index);


for(int i = 0;i<3;i++){ for(int i = 0;i<1;i++){
String clientVersion = "1.0." + i; String clientVersion = "1.0." + i;
String osName = "android"; String osName = "android";
String osVersion = "1.0.1"; String osVersion = "1.0.1";
Expand Down

0 comments on commit 3118e6a

Please sign in to comment.