Commit 74b32f80 by “Kongxiangkun”

增加积分商城相关代码

parent dcb4c0e0
...@@ -168,7 +168,7 @@ public class PointServiceImpl extends ServiceImpl<PointMapper, Point> implements ...@@ -168,7 +168,7 @@ public class PointServiceImpl extends ServiceImpl<PointMapper, Point> implements
if(type.equals(PointTypeEnum.READ.getKey())){ if(type.equals(PointTypeEnum.READ.getKey())){
int cnt = pointDetailsMapper.getCountTodayByLearnType(accountId, type); int cnt = pointDetailsMapper.getCountTodayByLearnType(accountId, type);
log.info("阅读文章 赠送积分判断当日是否超过次数:{}", cnt); log.info("阅读文章 赠送积分判断当日是否超过次数:{}", cnt);
if(cnt <= 5){ if(cnt < 5){
return new PointTypeStrategy(PointTypeEnum.READ, sourceId); return new PointTypeStrategy(PointTypeEnum.READ, sourceId);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment