Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

我试过修改ids的参数,然后可以做到提前预约车票和预约之前的车票。但是我搞不清楚ids参数的分布规律。 #2

Open
huandordor opened this issue Nov 18, 2023 · 1 comment

Comments

@huandordor
Copy link

No description provided.

@Thungghuan
Copy link
Owner

ids这个field应该是由预约校巴列表这个接口的返回值得到的,是学校那边定死的,不需要去了解其分布规律。

- Method: `POST`
- URL: `/commuteOrder/submitTicket`
- Param:
```json
[
{
"ids": "",
"dateDeparture": "",
"startDate": "",
"endDate": "",
"startLocation": "",
"downtown": "",
"tickets": 1,
"ischecked": true,
"subTickets": 1
}
]
```
> 参数除`ischecked``subTickets`外都为`预约校巴列表`接口返回的信息

具体可以结合接口文档api/bus.py来看。
要预约车票,要先调用预约校巴列表来获取对应参数信息,再选择对应的校巴id来预约。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants