| | |
| | | if (text.isSuccess()) { |
| | | copywriting.setText(text.getResult().toString()); |
| | | } else { |
| | | throw new IllegalArgumentException("生成失败!"+text.getResult().toString()); |
| | | throw new IllegalArgumentException("生成失败!"+text.getMessage()); |
| | | } |
| | | copywriting.setAuditer(cp.getAuditor()); |
| | | copywriting.setOutStatus("1"); |
| | | copywriting.setCreateBy(cp.getAuditorName()); |
| | | copywriting.setFileName(cp.getFileName()); |
| | | copywriting.setUrlName(cp.getBenchmarkUrl()); |
| | | copywriting.setSchemeId(cp.getCsId()); |
| | | copywritingService.save(copywriting); |
| | | } |
| | | // 假设生成成功,这里可以记录生成结果 |