Commit 5173a01b6e22cb668297bd4b99163c996b668df1
1 parent
58f246b6
fix -> sdk ->
Showing
1 changed file
with
1 additions
and
15 deletions
fw-hermes-sdk/src/main/java/cn/fw/hermes/sdk/api/para/MsgParamCondition.java
... | ... | @@ -218,7 +218,7 @@ public class MsgParamCondition { |
218 | 218 | title = title == null ? "" : title; |
219 | 219 | customContent.setData(title); |
220 | 220 | customContent.setDesc(desc); |
221 | - customContent.setExt(checkExt(ext)); | |
221 | + customContent.setExt(ext); | |
222 | 222 | lifeTime = lifeTime == null ? 604800 : lifeTime; |
223 | 223 | if (lifeTime / 604800 > 0) { |
224 | 224 | lifeTime = 604800; |
... | ... | @@ -242,20 +242,6 @@ public class MsgParamCondition { |
242 | 242 | } |
243 | 243 | |
244 | 244 | |
245 | - private static Map<String, Object> checkExt(Map<String, Object> ext) { | |
246 | - for (Map.Entry<String, Object> cur : ext.entrySet()) { | |
247 | - String key = cur.getKey(); | |
248 | - Object value = cur.getValue(); | |
249 | - if ("type".equals(key)) { | |
250 | - if (value instanceof MessageBusinessType) { | |
251 | - ext.put("type", ((MessageBusinessType) value).getMsg()); | |
252 | - } | |
253 | - } | |
254 | - } | |
255 | - return ext; | |
256 | - } | |
257 | - | |
258 | - | |
259 | 245 | public static Builder newBuilder() { |
260 | 246 | return new Builder(); |
261 | 247 | } | ... | ... |