feat: 任务改用采集采购独立序号 (#172)
This commit is contained in:
@@ -17,6 +17,10 @@ POST /api/v1/client/tasks/{task_id}/result 提交成功结果
|
||||
POST /api/v1/client/tasks/{task_id}/failure 提交失败/需人工
|
||||
```
|
||||
|
||||
`task_id` 是不透明的稳定字符串,当前采集任务为 `cjN`、采购任务为
|
||||
`cgN`。Client 必须原样保存和回传,不校验旧前缀,不从编号推导类型;
|
||||
业务类型始终以响应中的 `type` 为准。
|
||||
|
||||
`[必须]` **不得新增"让 Client 查询状态"类接口**,也不得加回租约和心跳。
|
||||
理由见 Client 契约 §1.1:本项目人工付款,重复下单只产生重复的**未付款**订单,
|
||||
不值得为它引入一整套中断逻辑。
|
||||
@@ -90,7 +94,7 @@ UPDATE tasks
|
||||
```json
|
||||
{
|
||||
"task": {
|
||||
"id": "PDD-20260806-0001",
|
||||
"id": "cg1",
|
||||
"type": "purchase",
|
||||
"execution_mode": "dry_run",
|
||||
"version": 1,
|
||||
|
||||
Reference in New Issue
Block a user