...
|
...
|
@@ -557,10 +557,7 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
}
|
|
|
grassArticle.setIsRecommend(isRecommend);
|
|
|
grassArticle.setRecommendTime(System.currentTimeMillis());
|
|
|
//后期新加的逻辑 发奖励-- 1)晒单的文章2)被推荐 3)没有发放过奖励
|
|
|
if (isRecommend == 1 && articleInfo.getArticleType() == 4 && articleInfo.getRemRewardFlag() == 0) {
|
|
|
sendRemReward(articleInfo);
|
|
|
}
|
|
|
|
|
|
//Add 从没推荐到推荐,发送站内信通知
|
|
|
if (isRecommend == 1 && articleInfo.getIsRecommend() == 0) {
|
|
|
//文章推荐站内信通知只发送一次 发送过不会再发送
|
...
|
...
|
@@ -598,6 +595,10 @@ public class GrassArticleServiceImpl implements IGrassArticleService { |
|
|
grassArticleDao.updateByPrimaryKeySelective(grassArticle);
|
|
|
//推荐和置顶操作,清前台缓存
|
|
|
clearArticleListCache(req.getArticleId());
|
|
|
//后期新加的逻辑 发奖励-- 1)晒单的文章2)被推荐 3)没有发放过奖励
|
|
|
if (isRecommend == 1 && articleInfo.getArticleType() == 4 && articleInfo.getRemRewardFlag() == 0) {
|
|
|
sendRemReward(articleInfo);
|
|
|
}
|
|
|
}
|
|
|
//编辑文章
|
|
|
if (type == 1) {
|
...
|
...
|
|