update:修复复刻失败问题

This commit is contained in:
3030332422
2025-10-17 17:08:41 +08:00
parent f8b1e8199c
commit af02d53718
@@ -257,11 +257,17 @@ public class VoiceCloneServiceImpl extends BaseServiceImpl<VoiceCloneDao, VoiceC
if (type.equals("huoshan_double_stream")) { if (type.equals("huoshan_double_stream")) {
huoshanClone(config, entity); huoshanClone(config, entity);
} }
} catch (RenException re) {
entity.setTrainStatus(3);
entity.setTrainError(re.getMsg());
baseDao.updateById(entity);
throw re;
} catch (Exception e) { } catch (Exception e) {
e.printStackTrace(); e.printStackTrace();
entity.setTrainStatus(3); entity.setTrainStatus(3);
entity.setTrainError(e.getMessage()); entity.setTrainError(e.getMessage());
baseDao.updateById(entity); baseDao.updateById(entity);
throw new RenException(ErrorCode.VOICE_CLONE_TRAINING_FAILED, e.getMessage());
} }
} }