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

好奇,获取大麦服务器时间戳的API是怎么找到的? #36

Open
1195343015 opened this issue Sep 6, 2024 · 1 comment
Open

Comments

@1195343015
Copy link

/**
*
* @returns 大麦服务器时间戳
*/
function getDamaiTimestamp() {
return JSON.parse(http.get("https://mtop.damai.cn/gw/mtop.common.getTimestamp/", {
headers: {
'Host': 'mtop.damai.cn',
'Content-Type': 'application/json;charset=utf-8',
'Accept': '*/*',
'User-Agent': 'floattime/1.1.1 (iPhone; iOS 15.6; Scale/3.00)',
'Accept-Language': 'zh-Hans-CN;q=1, en-CN;q=0.9',
'Accept-Encoding': 'gzip, deflate, br',
'Connection': 'keep-alive'
}
}).body.string()).data.t;
}

@1195343015 1195343015 changed the title 好奇,获取大麦时间戳的API是怎么找到的? 好奇,获取大麦服务器时间戳的API是怎么找到的? Sep 6, 2024
@qllokirin
Copy link

+1 而且有个问题是 调用接口就能花费100-200ms 这样时间不是更不精准了吗

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