|
@@ -515,7 +515,7 @@ public class RiskServiceImpl extends ReflectUtil implements RiskService {
|
|
|
//判断存在ecpm小于预设值 达到预设条数时触发风控
|
|
//判断存在ecpm小于预设值 达到预设条数时触发风控
|
|
|
int haveCount = Integer.parseInt(limitMap.get("haveCount"));
|
|
int haveCount = Integer.parseInt(limitMap.get("haveCount"));
|
|
|
long count = records.stream().filter(
|
|
long count = records.stream().filter(
|
|
|
- s -> (Integer.parseInt(s.getEcpm()) * 10) > haveCount).count();
|
|
|
|
|
|
|
+ s -> (s.getEcpm().compareTo(BigDecimal.valueOf(haveCount))) > 0).count();
|
|
|
int exact = Math.toIntExact(count);
|
|
int exact = Math.toIntExact(count);
|
|
|
if(count>exact){
|
|
if(count>exact){
|
|
|
riskLockUser(userId, "742","激励视频ecpm值控制","用户已被风控,风控编码:742");
|
|
riskLockUser(userId, "742","激励视频ecpm值控制","用户已被风控,风控编码:742");
|