异常调整

This commit is contained in:
lxu75
2025-06-10 18:10:54 +08:00
parent 4b2124630c
commit 5d17420899

View File

@@ -65,17 +65,18 @@ public class SpokesManService {
*/
public void spokesManCallBack(Object req) {
//把req转成SpokesManDTO对象
SpokesManDTO spokesManDTO = JSON.parseObject(JSON.toJSONString(req), SpokesManDTO.class);
if (spokesManDTO == null || spokesManDTO.getFiles() == null || spokesManDTO.getFiles().isEmpty()
|| spokesManDTO.getPlatform() == null || spokesManDTO.getTheme() == null) {
log.error("社区特邀发言官入参错误");
}
// 生成ai分析请求id
String aiAnalysisRequestId = AiAnalysisUtils.getAiAnalysisRequestId(BusinessTypeEnum.COMMUNITYTARGET.getCode());
try {
// 异步保存请求日志
syncSaveRequestLogs(JSON.toJSONString(req), aiAnalysisRequestId);
//把req转成SpokesManDTO对象
SpokesManDTO spokesManDTO = JSON.parseObject(JSON.toJSONString(req), SpokesManDTO.class);
if (spokesManDTO == null || spokesManDTO.getFiles() == null || spokesManDTO.getFiles().isEmpty()
|| spokesManDTO.getPlatform() == null || spokesManDTO.getTheme() == null) {
log.error("社区特邀发言官入参错误");
throw new RuntimeException("社区特邀发言官入参错误");
}
//获取特邀发言官敏感词配置
List<AiAnalyticBusinessConfig> sensiveWordLibraryList = aiAnalyticBusinessConfigMapper.selectList(