Commit b68f8a98 authored by zhouwei's avatar zhouwei

dify成功状态是successed

parent 2691b976
...@@ -286,8 +286,9 @@ public class FailoverGatewayFilterFactory extends AbstractGatewayFilterFactory<F ...@@ -286,8 +286,9 @@ public class FailoverGatewayFilterFactory extends AbstractGatewayFilterFactory<F
try { try {
JSONObject jsonBody = JSON.parseObject(body); JSONObject jsonBody = JSON.parseObject(body);
Integer bodyStatus = jsonBody.getInteger("status"); String bodyStatus = jsonBody.getString("status");
if (bodyStatus == null || bodyStatus != 200) { log.info("Source request response: bodyStatus={}", bodyStatus);
if (!"succeeded".equalsIgnoreCase(bodyStatus)) {
// 只在 source 请求时记录错误 // 只在 source 请求时记录错误
if (errorStats != null) { if (errorStats != null) {
errorStats.add(false); errorStats.add(false);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment