代码优化
This commit is contained in:
+2
@@ -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;
|
||||
|
||||
}
|
||||
|
||||
+2
-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);
|
||||
// 记录
|
||||
|
||||
+2
-2
@@ -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.记录
|
||||
|
||||
+2
-2
@@ -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.记录
|
||||
|
||||
Reference in New Issue
Block a user