精易论坛

标题: 一个Get数据时间失效的问题 [打印本页]

作者: ilovegenny    时间: 2025-2-17 08:07
标题: 一个Get数据时间失效的问题
刚开始是能Get到数据的,但是过了一会就要做时间检测了,这个怎么办?

GET https://serverplus.huanshoulv.co ... -app&div=ANDH010981 HTTP/1.1
appversion: 1.9.8.1
deviceId: X0i6/dJV6zcDAHsTutjCzyxH
user-agent: 0XwbdtzPwT6EyULV9bF+cw
mobiledevice: 2
Host: serverplus.huanshoulv.com
Connection: Keep-Alive
Accept-Encoding: gzip




001.jpg (63.64 KB, 下载次数: 0)

001.jpg

作者: dice1412    时间: 2025-2-17 08:07
ts=1739750027007
作者: ilovegenny    时间: 2025-2-17 08:08
GET https://serverplus.huanshoulv.com/aimapp/stock/historyKline/300153.SZ?date=20250215&get_type=offset&candle_period=6&candle_mode=0&data_count=51&search_direction=1&get_fundflow=1&open_uuid=X0i6/dJV6zcDAHsTutjCzyxH&ts=1739750027007&device_id=X0i6/dJV6zcDAHsTutjCzyxH&sdk_int=22&appversion=1.9.8.1&width=1600&device_token=18071adc03b8bd32946&channel=hsl-app&div=ANDH010981 HTTP/1.1
appversion: 1.9.8.1
deviceId: X0i6/dJV6zcDAHsTutjCzyxH
user-agent: 0XwbdtzPwT6EyULV9bF+cw
mobiledevice: 2
Host: serverplus.huanshoulv.com
Connection: Keep-Alive
Accept-Encoding: gzip


作者: ilovegenny    时间: 2025-2-17 08:54
dice1412 发表于 2025-2-17 08:12
ts=1739750027007

    好思路,我今天测试一下
作者: ilovegenny    时间: 2025-2-17 12:22
dice1412 发表于 2025-2-17 08:12
ts=1739750027007

老师好,我换了TS最新的时间戳也出错,老师请帮忙看下

001.jpg (124.11 KB, 下载次数: 0)

001.jpg

作者: 张岩    时间: 2025-2-17 12:49
ts=取现时间戳, 在TS后面右键 有加入时间戳的代码

作者: ilovegenny    时间: 2025-2-17 13:29
张岩 发表于 2025-2-17 12:49
ts=取现时间戳, 在TS后面右键 有加入时间戳的代码

老师,不是很明白啊
作者: 张岩    时间: 2025-2-17 14:29
ilovegenny 发表于 2025-2-17 13:29
老师,不是很明白啊

请求地址里面鼠标右键有个插入时间戳  插入TS=后面就行
作者: ilovegenny    时间: 2025-2-17 15:05
张岩 发表于 2025-2-17 14:29
请求地址里面鼠标右键有个插入时间戳  插入TS=后面就行

我替换成最新的13位时间戳,还是显示“{"msg":"请检查您手机的系统时间是否正确","status":"401"}”,你那边会么
作者: 1752328925    时间: 2025-2-17 15:27
ilovegenny 发表于 2025-2-17 12:22
老师好,我换了TS最新的时间戳也出错,老师请帮忙看下

要时间戳,不要当前的秒 ,要毫秒的
作者: ilovegenny    时间: 2025-2-17 15:32
1752328925 发表于 2025-2-17 15:27
要时间戳,不要当前的秒 ,要毫秒的

是啊,我就是用毫秒的,13位的,不行啊
作者: 1752328925    时间: 2025-2-17 15:44
ilovegenny 发表于 2025-2-17 15:32
是啊,我就是用毫秒的,13位的,不行啊

在哪爬的接口,发我地址我看看,
作者: ilovegenny    时间: 2025-2-17 16:54
1752328925 发表于 2025-2-17 15:44
在哪爬的接口,发我地址我看看,

换手率app
作者: ilovegenny    时间: 2025-2-17 21:20
     现在时间戳没问题了,每次用最新的时间戳,但是这个user-agent会变,用旧的就用不了,我用Fiddler抓数据,每次user-agent都会变化,自己随便找一个手机user-agent都不行,不知为何

001.jpg (105.82 KB, 下载次数: 0)

001.jpg





欢迎光临 精易论坛 (https://125.confly.eu.org/) Powered by Discuz! X3.4