SentBody新增参数默认值

This commit is contained in:
远方 2022-03-20 14:25:08 +08:00
parent eadac1b887
commit bf7b6e79ae
2 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,10 @@ public class SentBody implements Serializable {
return data.get(key);
}
public String get(String key,String defaultValue) {
return data.getOrDefault(key,defaultValue);
}
public long getTimestamp() {
return timestamp;
}