修复V3空业务根回调处理
This commit is contained in:
1 parent
3589bd99c7
commit
9bcbe8a3ac
2 files changed
+35
No files matched your search
+3
@@ -226,6 +226,9 @@ public class ReservationAiTaskIntakeServiceImpl implements ReservationAiTaskInta
|
||||
JsonNode messageEvents = root.path("message_events");
|
||||
JsonNode unhandledIntents = root.path("unhandled_current_intents");
|
||||
int itemCount = messageEvents.size() + unhandledIntents.size();
|
||||
if (itemCount <= 0) {
|
||||
throw error(HttpStatus.BAD_REQUEST, "TASK_RESULTS_EMPTY", "message_events 和 unhandled_current_intents 不能同时为空。");
|
||||
}
|
||||
String requestPayloadSha256 = sha256(rawBody == null ? "" : rawBody);
|
||||
String batchIdempotencyKey = sha256(BATCH_KEY_PREFIX + "|" + sourceMessageId + "|" + requestPayloadSha256);
|
||||
|
||||
|
||||
Reference in new issue
Block a user