fix: 修复 PDD 页面误判与失败回执 (#35)
This commit is contained in:
@@ -355,6 +355,21 @@ Idempotency-Key: task-id:attempt-id:failure-v1
|
||||
|
||||
`status` 只能是 `retry_wait`、`manual_review`、`failed` 或 `cancelled`。
|
||||
|
||||
成功响应与结果接口使用同一种确认结构,并额外返回任务状态:
|
||||
|
||||
```json
|
||||
{
|
||||
"accepted": true,
|
||||
"result_id": "result-uuid",
|
||||
"task_status": "assigned",
|
||||
"accepted_at": "2026-08-06T08:03:01Z"
|
||||
}
|
||||
```
|
||||
|
||||
`[必须]` `result_id` 非空。旧 Admin 已经写入幂等表、但没有 `result_id` 的
|
||||
历史失败响应,Client 可按 `accepted + task_status + accepted_at` 兼容一次,
|
||||
避免把已经接收的数据误报为拒绝。
|
||||
|
||||
规则:
|
||||
|
||||
- `[必须]` §6.1 的无条件接受规则同样适用于本接口。
|
||||
|
||||
Reference in New Issue
Block a user