feat(shipping-notice): 增加发货通知建单幂等性支持及内容哈希校验
This commit is contained in:
1 parent
0a9bd6415d
commit
143e054d86
39 files changed
+1750
-80
No files matched your search
@@ -78,6 +78,7 @@ export function buildShippingSubmitDecisionTurn(
|
||||
export function buildShippingCreateBatchTurn(
|
||||
files: File[],
|
||||
conversationId?: string | null,
|
||||
idempotencyKey?: string,
|
||||
): { actionType: string; displayText: string; payload: Record<string, unknown>; files: File[] } {
|
||||
const count = files.length;
|
||||
const displayText = count === 1
|
||||
@@ -89,6 +90,7 @@ export function buildShippingCreateBatchTurn(
|
||||
payload: {
|
||||
conversation_id: conversationId || undefined,
|
||||
file_count: count,
|
||||
idempotency_key: idempotencyKey,
|
||||
},
|
||||
files,
|
||||
};
|
||||
|
||||
Reference in new issue
Block a user