代码优化

This commit is contained in:
bayi
2018-05-21 13:20:31 +08:00
parent 63735a7312
commit c20bbbd7b8
4 changed files with 8 additions and 6 deletions
@@ -18,5 +18,7 @@ public class FangjiaConstant {
public static final int SUCCESS_RESPONSE_CODE = 200;
public static final int SEND_THREAD_NUM = 100;
public static final int URL_SEND_TYPE = 2;
}
@@ -194,8 +194,8 @@ public class CityRankingSendJob implements SimpleJob {
PushMessageParam param = new PushMessageParam();
param.setTitle("排行榜提醒");
param.setContent(title);
param.setOperation(1);
param.setOperationPage("");
param.setOperation(FangjiaConstant.URL_SEND_TYPE);
param.setOperationPage("/views/house/cityDetail.html?city="+city.getCity());
param.setPushClientId(user.getPushClientId());
pushMessageService.push(param);
// 记录
@@ -80,8 +80,8 @@ public class HousingEstateNewsSendJob implements SimpleJob {
PushMessageParam param = new PushMessageParam();
param.setTitle(n.getTitle());
param.setContent(pushMsg);
param.setOperation(1);
param.setOperationPage("");
param.setOperation(FangjiaConstant.URL_SEND_TYPE);
param.setOperationPage("/views/news/newsDetail.html?newsId=" + n.getId());
param.setPushClientId(user.getPushClientId());
pushMessageService.push(param);
// 4.记录
@@ -81,8 +81,8 @@ public class TopNewsSendJob implements SimpleJob {
PushMessageParam param = new PushMessageParam();
param.setTitle(n.getTitle());
param.setContent(pushMsg);
param.setOperation(1);
param.setOperationPage("");
param.setOperation(FangjiaConstant.URL_SEND_TYPE);
param.setOperationPage("/views/news/newsDetail.html?newsId=" + n.getId());
param.setPushClientId(user.getPushClientId());
pushMessageService.push(param);
// 4.记录