|
|
@@ -569,6 +569,10 @@ public class RiskServiceImpl implements RiskService {
|
|
|
return Result.resultOk(RepMessage.QUERY_SUCCESS);
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * 校验默认风控规则768
|
|
|
+ * 每{}小时用户获得完成{}个获得奖励的激励视频
|
|
|
+ */
|
|
|
private void checkRisk768(YtDyzUser dyzUser, List<YtDyzAdRecord> adRecords) {
|
|
|
RiskTemplateView riskTempView = configMapper.getByCode(dyzUser.getAppId() + "-768");
|
|
|
if (riskTempView == null || riskTempView.getEnabled() != 1) return;
|
|
|
@@ -650,6 +654,7 @@ public class RiskServiceImpl implements RiskService {
|
|
|
|
|
|
/**
|
|
|
* 校验默认风控规则766
|
|
|
+ * 当日用户获得{}个获得奖励的激励视频,近期前{}个获得奖励的激励视频平均收益<{}
|
|
|
*/
|
|
|
private void checkRisk766(YtDyzUser dyzUser, List<YtDyzAdRecord> adRecords) {
|
|
|
RiskTemplateView riskTempView = configMapper.getByCode(dyzUser.getAppId() + "-766");
|
|
|
@@ -675,6 +680,7 @@ public class RiskServiceImpl implements RiskService {
|
|
|
}
|
|
|
}
|
|
|
if (averageRevenue.compareTo(averageRevenueLimit) < 0) {
|
|
|
+ // 自定义响应
|
|
|
throw new CommonException("766");
|
|
|
}
|
|
|
}
|