...
|
...
|
@@ -636,13 +636,16 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
text = JSON.parseObject(data.getString("data")).getString("text");
|
|
|
}
|
|
|
}
|
|
|
String params = (StringUtils.isBlank(text)||text.length()<15?text: text.substring(0,15))+"...";
|
|
|
String noteContent = (StringUtils.isBlank(text)||text.length()<15?text: text.substring(0,15))+"...";
|
|
|
long publishTime = Long.valueOf(grassArticleReq.getPublishTime());
|
|
|
String timeStr = DateUtil.long2DateStr(publishTime , "yyyyMMddHHmm");
|
|
|
timeStr = timeStr.substring(0,4)+"年"+timeStr.substring(4,6)+"月"+timeStr.substring(6,8)+"日"+
|
|
|
timeStr.substring(8,10)+"时"+timeStr.substring(10,12)+"分";
|
|
|
String params = "";
|
|
|
if(businessType == GrassInboxBusinessTypeEnum.SYSTEM_AUTH_ARTICLE.getBusinessType()){//审核不通过
|
|
|
long publishTime = Long.valueOf(grassArticleReq.getPublishTime());
|
|
|
String timeStr = DateUtil.long2DateStr(publishTime , "yyyyMMddHHmm");
|
|
|
timeStr = timeStr.substring(0,4)+"年"+timeStr.substring(4,6)+"月"+timeStr.substring(6,8)+"日"+
|
|
|
timeStr.substring(8,10)+"时"+timeStr.substring(10,12)+"分";
|
|
|
params = params + "," + timeStr;
|
|
|
params = timeStr + "," + noteContent;
|
|
|
}else if(businessType == GrassInboxBusinessTypeEnum.SYSTEM_RECOMMEND_ARTICLE.getBusinessType()){
|
|
|
params = noteContent;
|
|
|
}
|
|
|
|
|
|
addReq.setParams(params);
|
...
|
...
|
|