-
Notifications
You must be signed in to change notification settings - Fork 69
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
[Bug] 上古老铁 tid=25084945 无法用 client.get_posts() 查出数据。 #213
Comments
远古ip账号没有user_id导致的,我回去想想怎么修比较好 |
https://n0099.net/tbm/v1/client_tester.php?type=replies&tid=25084945&pn=1&client_version=12.62.1.0 $ curl -s https://n0099.net/tbm/v1/client_tester.php\?type\=replies\&tid\=25084945\&pn\=1\&client_version\=12.62.1.0 \
| jq '.post_list[] | select(.id == 222283034) | .author_id'
0 如果有多个 $ curl -s https://n0099.net/tbm/v1/client_tester.php\?type\=replies\&tid\=25084945\&pn\=1\&client_version\=12.62.1.0 \
| jq '.post_list[] | select(.author_id == 0) | .floor'
2819
3435
3437
3443
3444
3446
3447
3453
3454 但 $ curl -s https://n0099.net/tbm/v1/client_tester.php\?type\=replies\&tid\=25084945\&pn\=1\&client_version\=12.62.1.0 \
| jq '.user_list[] | select(.id == 0)'
{
"id": 0,
"name_show": "220.190.163.*",
"portrait": "00003232302e3139302e3136332e3230380000"
} 我的建议是看到出现了 $ curl -s https://n0099.net/tbm/v1/client_tester.php\?type\=replies\&tid\=25084945\&pn\=1\&client_version\=6.0.2 \
| jq '.post_list[] | .author | select(.id < 1)'
{
"id": 0,
"name": "220.190.163.*",
"name_show": "220.190.163.*",
"portrait": "00003232302e3139302e3136332e3230380000",
"level_id": 0,
"is_bawu": 0,
"bawu_type": "",
"gender": 0
}
{
"portrait": "00003231392e3134392e34362e37350000",
"level_id": 0,
"is_bawu": 0,
"bawu_type": "",
"gender": 0,
"id": 0,
"name": "219.149.46.*",
"name_show": "219.149.46.*"
}
{
"name_show": "221.194.106.*",
"portrait": "00003232312e3139342e3130362e3138320000",
"level_id": 0,
"is_bawu": 0,
"bawu_type": "",
"gender": 0,
"id": 0,
"name": "221.194.106.*"
}
{
"gender": 0,
"id": 0,
"name": "61.135.146.*",
"name_show": "61.135.146.*",
"portrait": "000036312e3133352e3134362e3234310000",
"level_id": 0,
"is_bawu": 0,
"bawu_type": ""
}
{
"gender": 0,
"id": 0,
"name": "222.76.156.*",
"name_show": "222.76.156.*",
"portrait": "00003232322e37362e3135362e3135370000",
"level_id": 0,
"is_bawu": 0,
"bawu_type": ""
}
{
"portrait": "00003231302e32392e3135372e33350000",
"level_id": 0,
"is_bawu": 0,
"bawu_type": "",
"gender": 0,
"id": 0,
"name": "210.29.157.*",
"name_show": "210.29.157.*"
}
{
"id": 0,
"name": "210.29.157.*",
"name_show": "210.29.157.*",
"portrait": "00003231302e32392e3135372e33350000",
"level_id": 0,
"is_bawu": 0,
"bawu_type": "",
"gender": 0
}
{
"portrait": "00003230322e39372e3134342e3233310000",
"level_id": 0,
"is_bawu": 0,
"bawu_type": "",
"gender": 0,
"id": 0,
"name": "202.97.144.*",
"name_show": "202.97.144.*"
}
{
"id": 0,
"name": "202.97.144.*",
"name_show": "202.97.144.*",
"portrait": "00003230322e39372e3134342e3233310000",
"level_id": 0,
"is_bawu": 0,
"bawu_type": "",
"gender": 0
} |
不过滤 |
那您就拿不到除了第一个出现的 |
要支持那种功能的话得调版本号了,实在麻烦 |
之前没想到 user_id 会不存在, 那看来还是要优先使用 portrait 了。post, FragAT 这些在保存时还应该要给他们添加 portrait 字段。查询也要优先使用 portrait了。 |
首先
portrait有两个版本,您在这看到的这些
如果未来又突然出现了第三版portrait您打算把哪个版本当做 https://en.wikipedia.org/wiki/Single_source_of_truth ?至少截止2024年7月,
那您就得再去调接口根据
更多的是许多接口不接受
|
对于我的tbm而言本来就支持对单个
更麻烦的是由于存在 |
简要描述这个bug
一时兴起,想找最楼最长的帖子,爬取一下试试,但是发现 tid=25084945 的帖子请求不到数据
如何复现
在何种场景下用何种操作复现
你希望程序作出何种行为
...
截图(可选)
...
The text was updated successfully, but these errors were encountered: