mirror of
https://github.com/xinnan-tech/xiaozhi-esp32-server.git
synced 2026-07-22 07:03:53 +08:00
修改业务逻辑
--AgentVoicePrintServiceImpl.java 删除声纹的时间,声纹服务不在线或者删除失败,都允许删除
This commit is contained in:
+6
-6
@@ -108,13 +108,13 @@ public class AgentVoicePrintServiceImpl extends ServiceImpl<AgentVoicePrintDao,
|
||||
}
|
||||
cancelVoicePrint(voicePrintId);
|
||||
return true;
|
||||
} catch (RenException e) {
|
||||
} catch (RuntimeException e) {
|
||||
log.error("删除声纹存在运行时错误原因:{}", e.getMessage());
|
||||
return true;
|
||||
}catch (Exception e) {
|
||||
status.setRollbackOnly(); // 标记事务回滚
|
||||
throw e;
|
||||
} catch (Exception e) {
|
||||
status.setRollbackOnly(); // 标记事务回滚
|
||||
log.error("删除声纹错误原因:{}", e.getMessage());
|
||||
throw new RenException("删除声纹错误,请联系管理员");
|
||||
log.error("删除声纹存在错误原因:{}", e.getMessage());
|
||||
throw new RenException("删除声纹出现了错误");
|
||||
}
|
||||
}));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user