修改业务逻辑

--AgentVoicePrintServiceImpl.java 删除声纹的时间,声纹服务不在线或者删除失败,都允许删除
This commit is contained in:
JianYu Zheng
2025-07-17 09:45:27 +08:00
parent 4afa29554f
commit ce1e3fb04d
@@ -108,13 +108,13 @@ public class AgentVoicePrintServiceImpl extends ServiceImpl<AgentVoicePrintDao,
} }
cancelVoicePrint(voicePrintId); cancelVoicePrint(voicePrintId);
return true; return true;
} catch (RenException e) { } catch (RuntimeException e) {
log.error("删除声纹存在运行时错误原因:{}", e.getMessage());
return true;
}catch (Exception e) {
status.setRollbackOnly(); // 标记事务回滚 status.setRollbackOnly(); // 标记事务回滚
throw e; log.error("删除声纹存在错误原因:{}", e.getMessage());
} catch (Exception e) { throw new RenException("删除声纹出现了错误");
status.setRollbackOnly(); // 标记事务回滚
log.error("删除声纹错误原因:{}", e.getMessage());
throw new RenException("删除声纹错误,请联系管理员");
} }
})); }));
} }