Merge branch 'dev' into uat

This commit is contained in:
lxu75
2025-03-10 17:24:18 +08:00
2 changed files with 4 additions and 2 deletions

View File

@@ -39,7 +39,7 @@ public class DiFyServiceImpl implements DiFyService{
map.put("inputs",diFyReq.getInputs());
map.put("response_mode","blocking");
map.put("user",diFyReq.getUser());
log.info("请求DiFy入参:{}",diFyReq.getInputs());
log.info("请求DiFy入参:{}",map);
JSONObject difyResult = diFyFeign.runWorkflows("Bearer "+diFyReq.getFlowId(),map);
log.info("请求DiFy响应结果:{}",difyResult.toJSONString());
JSONObject data = difyResult.getJSONObject("data");

View File

@@ -109,7 +109,9 @@ public class MqMessageRecordServiceImpl extends ServiceImpl<MqMessageRecordMappe
DiFyReq diFyImageReq = new DiFyReq();
diFyImageReq.setUser(user);
diFyImageReq.setFlowId(imageFlowId);
diFyImageReq.setInputs(JSON.toJSONString(diFyImageWorkFlow));
JSONObject imageInputs = new JSONObject();
imageInputs.put("image", diFyImageWorkFlow);
diFyImageReq.setInputs(imageInputs);
//调用dify图片分析workflow
JSONObject difImageResult = (JSONObject) diFyService.getDiFyObject(diFyImageReq);