Skip to content

Commit 8370a11

Browse files
committed
fix:红包通知时间
1 parent 94aebbd commit 8370a11

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

android/src/main/java/com/netease/im/session/SessionUtil.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ public static void receiver(NotificationManager manager, CustomNotification cust
118118
String hasRedPacket = dict.getString("hasRedPacket");
119119
String serialNo = dict.getString("serialNo");
120120

121-
String timestamp = data.getString("timestamp");
122-
long t = 0L;
123-
try {
124-
t = Long.parseLong(timestamp);
125-
} catch (NumberFormatException e) {
126-
t = System.currentTimeMillis() / 1000;
127-
e.printStackTrace();
128-
}
121+
// String timestamp = data.getString("timestamp");
122+
long t = customNotification.getTime() / 1000;
123+
// try {
124+
// t = Long.parseLong(timestamp);
125+
// } catch (NumberFormatException e) {
126+
// t = System.currentTimeMillis() / 1000;
127+
// e.printStackTrace();
128+
// }
129129
// LogUtil.i("timestamp","timestamp:"+timestamp);
130130
// LogUtil.i("timestamp","t:"+t);
131131
// LogUtil.i("timestamp",""+data);

0 commit comments

Comments
 (0)