Showing
1 changed file
with
9 additions
and
6 deletions
@@ -636,13 +636,16 @@ public class GrassArticleServiceImpl implements IGrassArticleService { | @@ -636,13 +636,16 @@ public class GrassArticleServiceImpl implements IGrassArticleService { | ||
636 | text = JSON.parseObject(data.getString("data")).getString("text"); | 636 | text = JSON.parseObject(data.getString("data")).getString("text"); |
637 | } | 637 | } |
638 | } | 638 | } |
639 | - String params = (StringUtils.isBlank(text)||text.length()<15?text: text.substring(0,15))+"..."; | 639 | + String noteContent = (StringUtils.isBlank(text)||text.length()<15?text: text.substring(0,15))+"..."; |
640 | + long publishTime = Long.valueOf(grassArticleReq.getPublishTime()); | ||
641 | + String timeStr = DateUtil.long2DateStr(publishTime , "yyyyMMddHHmm"); | ||
642 | + timeStr = timeStr.substring(0,4)+"年"+timeStr.substring(4,6)+"月"+timeStr.substring(6,8)+"日"+ | ||
643 | + timeStr.substring(8,10)+"时"+timeStr.substring(10,12)+"分"; | ||
644 | + String params = ""; | ||
640 | if(businessType == GrassInboxBusinessTypeEnum.SYSTEM_AUTH_ARTICLE.getBusinessType()){//审核不通过 | 645 | if(businessType == GrassInboxBusinessTypeEnum.SYSTEM_AUTH_ARTICLE.getBusinessType()){//审核不通过 |
641 | - long publishTime = Long.valueOf(grassArticleReq.getPublishTime()); | ||
642 | - String timeStr = DateUtil.long2DateStr(publishTime , "yyyyMMddHHmm"); | ||
643 | - timeStr = timeStr.substring(0,4)+"年"+timeStr.substring(4,6)+"月"+timeStr.substring(6,8)+"日"+ | ||
644 | - timeStr.substring(8,10)+"时"+timeStr.substring(10,12)+"分"; | ||
645 | - params = params + "," + timeStr; | 646 | + params = timeStr + "," + noteContent; |
647 | + }else if(businessType == GrassInboxBusinessTypeEnum.SYSTEM_RECOMMEND_ARTICLE.getBusinessType()){ | ||
648 | + params = noteContent; | ||
646 | } | 649 | } |
647 | 650 | ||
648 | addReq.setParams(params); | 651 | addReq.setParams(params); |
-
Please register or login to post a comment