Commit a5766f69 authored by Aleyn's avatar Aleyn

Merge branch 'bug' into 'master'

1,推送类型加上联合推送

See merge request !31
parents ed53074b 10548ae1
...@@ -361,8 +361,10 @@ public class MobPushService { ...@@ -361,8 +361,10 @@ public class MobPushService {
int push; int push;
if (pushType == null || pushType == 0) { if (pushType == null || pushType == 0) {
push = 0; push = 0;
} else { } else if (pushType == 1) {
push = 2; push = 2;
} else {
push = pushType;
} }
List<Map<String, Object>> list = new ArrayList<>(2); List<Map<String, Object>> list = new ArrayList<>(2);
//设置包名 //设置包名
......
...@@ -82,9 +82,6 @@ public class PushLogServiceImpl extends ServiceImpl<PushLogDao, PushLogEntity> i ...@@ -82,9 +82,6 @@ public class PushLogServiceImpl extends ServiceImpl<PushLogDao, PushLogEntity> i
taskId = taskId.substring(0, 200); taskId = taskId.substring(0, 200);
} }
pushLogEntity.setTaskId(taskId); pushLogEntity.setTaskId(taskId);
if (StringUtils.isNotEmpty(result) && result.length() > 200) {
result = result.substring(0, 200);
}
pushLogEntity.setResult(result); pushLogEntity.setResult(result);
String phone = informForm.getPhone(); String phone = informForm.getPhone();
if (StringUtils.isNotEmpty(phone)) { if (StringUtils.isNotEmpty(phone)) {
...@@ -109,15 +106,9 @@ public class PushLogServiceImpl extends ServiceImpl<PushLogDao, PushLogEntity> i ...@@ -109,15 +106,9 @@ public class PushLogServiceImpl extends ServiceImpl<PushLogDao, PushLogEntity> i
} }
pushLogEntity.setPushTarget(pushTarget); pushLogEntity.setPushTarget(pushTarget);
String body = informForm.getBody(); String body = informForm.getBody();
if (StringUtils.isNotEmpty(body) && body.length() > 200) {
body = body.substring(0, 200);
}
pushLogEntity.setPushContent(body); pushLogEntity.setPushContent(body);
pushLogEntity.setArriveStatus(1001); pushLogEntity.setArriveStatus(1001);
String jsonStr = JSONUtil.toJsonStr(informForm); String jsonStr = JSONUtil.toJsonStr(informForm);
if (jsonStr.length() > 200) {
jsonStr = jsonStr.substring(0, 200);
}
pushLogEntity.setBas1(jsonStr); pushLogEntity.setBas1(jsonStr);
pushLogEntity.setUpdateTime(new Date()); pushLogEntity.setUpdateTime(new Date());
return pushLogEntity; return pushLogEntity;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment