mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-11-27 04:49:47 +01:00
修改业务逻辑
--AgentVoicePrintServiceImpl.java 删除声纹的时间,声纹服务不在线或者删除失败,都允许删除
This commit is contained in:
parent
4afa29554f
commit
ce1e3fb04d
1 changed files with 6 additions and 6 deletions
|
|
@ -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("删除声纹错误,请联系管理员");
|
|
||||||
}
|
}
|
||||||
}));
|
}));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue