Womsxd / MihoyoBBSTools

Womsxd/AutoMihoyoBBS,米游社相关脚本
MIT License
874 stars 152 forks source link

IOS的社区api的DS似乎有问题 #54

Closed jellyqwq closed 1 year ago

jellyqwq commented 1 year ago
POST https://bbs-api.miyoushe.com/apihub/sapi/upvotePost HTTP/1.1
Host: bbs-api.miyoushe.com
x-rpc-device_model: xxx
DS: 1684169893,CYEMDy,b904b1cb32d4747ed8193f1fc669a7a6
Accept: */*
x-rpc-device_fp: xxx
x-rpc-client_type: 1
x-rpc-device_id: xxx
x-rpc-channel: appstore
Accept-Language: en-US,en-GB;q=0.9,en;q=0.8
Accept-Encoding: gzip, deflate, br
Content-Type: application/json
Content-Length: 40
Referer: https://app.mihoyo.com
x-rpc-device_name: xxx
x-rpc-app_version: 2.49.1
User-Agent: Hyperion/310 CFNetwork/1331.0.7 Darwin/21.4.0
Connection: keep-alive
Cookie: stuid=xxx;stoken=v2_....==;mid=...._mhy;login_ticket=xxx;
x-rpc-sys_version: 15.4.1

{"is_cancel":false,"post_id":"39361261"}
jellyqwq commented 1 year ago

这是成功请求的header, 但我的会返回 {'data': None, 'message': 'invalid request', 'retcode': -10001} 用的DS是 tools.get_ds(False)

在签到, 点赞, 分享均遇到该问题

jellyqwq commented 1 year ago

应该是ios的salt好像和安卓那边的不同