|
|
@@ -155,6 +155,10 @@ public class uniPush2ServiceImpl implements uniPush2Service {
|
|
|
if (param.getPayload() == null) {
|
|
|
param.setPayload(new HashMap<>());
|
|
|
}
|
|
|
+
|
|
|
+ if(imJsonString.length()>100){
|
|
|
+ imJsonString="";
|
|
|
+ }
|
|
|
param.getPayload().put("url", purl);
|
|
|
if (StringUtils.isNotBlank(imJsonString)) {
|
|
|
param.getPayload().put("extra", imJsonString);
|
|
|
@@ -309,6 +313,11 @@ public class uniPush2ServiceImpl implements uniPush2Service {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ if(imJsonString.length()>100 ){
|
|
|
+ // 报文总共只能传 4096 长度
|
|
|
+ imJsonString="";
|
|
|
+ }
|
|
|
+
|
|
|
// payload
|
|
|
Map<String, Object> payload = new HashMap<>();
|
|
|
if (StringUtils.isNotBlank(purl)) {
|