修改音频色情实际添加视频色情功能
策略管控增加多个url和多个权限标识
This commit is contained in:
@@ -229,6 +229,10 @@ public class AvCfgService extends BaseService{
|
||||
entity.setIsAudit(0);
|
||||
avCfgDao.updateAvSignSample(entity);
|
||||
}
|
||||
//添加即时生效
|
||||
entity.setIsValid(1);
|
||||
entity.setIsAudit(1);
|
||||
audioAuditAvSignSample(entity,1);
|
||||
}
|
||||
public void updateAvFileSampleValid(Integer isAudit,Integer isValid,String ids){
|
||||
AvFileSampleCfg entity = new AvFileSampleCfg();
|
||||
@@ -285,6 +289,33 @@ public class AvCfgService extends BaseService{
|
||||
}
|
||||
}
|
||||
|
||||
public void audioAuditAvSignSample(AvSignSampleCfg entity,Integer isAudit) throws MaatConvertException{
|
||||
avCfgDao.auditAvSignSample(entity);
|
||||
List<AvSignSampleCfg> list = new ArrayList<AvSignSampleCfg>();
|
||||
if(isAudit==1){
|
||||
list.add(entity);
|
||||
//调用服务接口下发配置数据
|
||||
String json=gsonToJson(list);
|
||||
logger.info("文件样例下发配置参数:"+json);
|
||||
//调用服务接口下发配置
|
||||
ToMaatResult result = ConfigServiceUtil.postCallbackCfg(json);
|
||||
logger.info("音视频标志样例配置下发响应信息:"+result.getMsg());
|
||||
|
||||
}else if(isAudit==3){
|
||||
AvSignSampleCfg cfg = new AvSignSampleCfg();
|
||||
cfg.setIsValid(0);
|
||||
cfg.setCompileId(entity.getCompileId());
|
||||
cfg.setServiceId(entity.getServiceId());
|
||||
list.add(cfg);
|
||||
//调用服务接口取消配置
|
||||
String json=gsonToJson(list);
|
||||
logger.info("标志样例下发配置参数:"+json);
|
||||
//调用服务接口取消配置
|
||||
ToMaatResult result = ConfigServiceUtil.put(json, 2);
|
||||
logger.info("音视频标志样例配置取消配置响应信息:"+result.getMsg());
|
||||
}
|
||||
|
||||
}
|
||||
public void auditAvSignSample(AvSignSampleCfg entity) throws MaatConvertException{
|
||||
|
||||
avCfgDao.updateAvSignSampleValid(entity);
|
||||
@@ -296,8 +327,8 @@ public class AvCfgService extends BaseService{
|
||||
String json=gsonToJson(list);
|
||||
logger.info("标志状态变更:"+json);
|
||||
//调用服务接口取消配置
|
||||
//ToMaatResult result = ConfigServiceUtil.put(json, 2);
|
||||
//logger.info("音视频标志样状态变更响应信息:"+result.getMsg());
|
||||
ToMaatResult result = ConfigServiceUtil.put(json, 2);
|
||||
logger.info("音视频标志样状态变更响应信息:"+result.getMsg());
|
||||
|
||||
}
|
||||
/*public void auditAvSignSample(AvSignSampleCfg entity,Integer isAudit) throws MaatConvertException{
|
||||
|
||||
Reference in New Issue
Block a user