Authored by 张帅

奖励活动fix

... ... @@ -1971,6 +1971,10 @@ public class GrassArticleServiceImpl implements IGrassArticleService {
logger.info("sendPublishReward reward send times reach maxtimes, rewardId is {}, articleId is {}, uid is {}",grassRewardsConfig.getId(), articleId, uid);
return;
}
if(grassRewardsConfig.getMaxTime() == 0){
logger.info("sendPublishReward reward maxtimes is 0, rewardId is {}",grassRewardsConfig.getId());
return ;
}
callSnsSendReward(articleId, grassRewardsConfig.getId(), 1, uid);
}catch (Exception e){
logger.warn("sendPublishReward error, articleId is {}, e is {}", articleId, e);
... ... @@ -2057,6 +2061,10 @@ public class GrassArticleServiceImpl implements IGrassArticleService {
logger.info("sendTopicReward reward send times reach maxtimes, rewardId is {}, articleId is {},uid is {}",rewardsConfig.getId(), articleId, uid);
return false;
}
if(rewardsConfig.getMaxTime() == 0){
logger.info("sendTopicReward reward maxtimes is 0, rewardId is {}",rewardsConfig.getId());
return false;
}
callSnsSendReward(articleId, rewardsConfig.getId(), 2, uid);
hasSend = true;
}catch (Exception e){
... ... @@ -2101,6 +2109,10 @@ public class GrassArticleServiceImpl implements IGrassArticleService {
logger.info("sendFirstPublishReward reward send times reach maxtimes, rewardId is {}, articleId is {}, uid is {}",grassRewardsConfig.getId(), articleId, uid);
return;
}
if(grassRewardsConfig.getMaxTime() == 0){
logger.info("sendTopicReward reward maxtimes is 0, rewardId is {}",grassRewardsConfig.getId());
return ;
}
callSnsSendReward(articleId, grassRewardsConfig.getId(), 3, uid);
}catch (Exception e){
logger.warn("sendFirstPublishReward error, articleId is {}, e is {}", articleId, e);
... ...