0

我尝试使用补丁请求来完成我的任务,我收到了任务完成的响应,但它没有在 wunderlist 应用程序上更新。我做了大约 9 次修订。我收到显示完成的响应,但是当我返回应用程序时,它显示没有更新。这是我对请求的回应:

{
"id": 3898040341,
"created_at": "2018-06-01T10:20:00.703Z",
"created_by_id": 24870738,
"created_by_request_id": "worker:w:w:recurring_task_creator:parent-3858561041",
"recurrence_type": "day",
"recurrence_count": 1,
"due_date": "2018-06-02",
"completed": true,
"completed_at": "2018-06-18T12:30:20.547Z",
"completed_by_id": 24870738,
"starred": false,
"list_id": 350926181,
"revision": 9,
"title": "Turn on computer",
"type": "task"
}

它说我今天完成了,但我的手机、平板电脑上的应用程序都没有更新,也没有完成。请帮忙。谢谢。

4

1 回答 1

0

没关系,我想通了。任务的 id 每次完成都会改变。这是针对重复性任务。所以我需要用一个新的 ID 更新当前的请求。

ID 为 3952832467 的旧请求结果

{
    "id": 3952832467,
    "created_at": "2018-06-19T11:42:13.366Z",
    "created_by_id": 24870738,
    "created_by_request_id": "worker:w:w:recurring_task_creator:parent-3949658004",
    "recurrence_type": "day",
    "recurrence_count": 1,
    "due_date": "2018-06-05",
    "completed": true,
    "completed_at": "2018-06-19T11:42:55.835Z",
    "completed_by_id": 24870738,
    "starred": false,
    "list_id": 350926181,
    "revision": 2,
    "title": "Turn on computer",
    "type": "task"
}

相同的请求结果,但没有 ID 3952834287:

{
    "id": 3952834287,
    "created_at": "2018-06-19T11:42:56.132Z",
    "created_by_id": 24870738,
    "created_by_request_id": "worker:w:w:recurring_task_creator:parent-3952832467",
    "recurrence_type": "day",
    "recurrence_count": 1,
    "due_date": "2018-06-06",
    "completed": true,
    "completed_at": "2018-06-19T14:52:28.644Z",
    "completed_by_id": 24870738,
    "starred": false,
    "list_id": 350926181,
    "revision": 2,
    "title": "Turn on computer",
    "type": "task"
}
于 2018-06-19T14:54:08.117 回答