Giter Site home page Giter Site logo

有时候,我们处于某些目的,要获取到淘宝、天猫、京东、拼多多、苏宁这些商城的服务器时间。

这个时间在抢购等情况下是非有用的,但很多人又不知道怎么正确的获取到这个时间,所以这里整理了一下获取方法,以供参考。

淘宝/天猫 http://api.m.taobao.com/rest/api3.do?api=mtop.common.getTimestamp

访问以上地址,会获得一下数据:

{"api":"mtop.common.getTimestamp","v":"*","ret":["SUCCESS::接口调用成功"],"data":{"t":"1605017462556"}} 这其中的

"data":{"t":"1605017462556"} 就是淘宝的服务器时间,通过时间戳转换,即可得到常规的时间,比如上面的1605017462556通过转换,就能得到2020-11-10 22:11:22。

京东 https://a.jd.com//ajax/queryServerData.html

同样的,访问上方的地址,得到以下数据:

{"serverTime":1605017683549} 转换后得到:2020-11-10 22:15:56。

2021年4月20日 更新

京东服务器时间请访问这个新的地址:https://api.m.jd.com/client.action?functionId=queryMaterialProducts&client=wh5

苏宁 http://quan.suning.com/getSysTime.do

访问上方地址,可以得到:

{"sysTime2":"2020-11-10 22:16:34","sysTime1":"20201110221634"} 不用转换时间戳,已经提供了两种数据形式。

原创文章,作者:蓝洛水深,如若转载,请注明出处:https://blog.lanluo.cn/9787

turbojerry's Projects

dailycheckin icon dailycheckin

基于【腾讯云函数】/【Docker】/【青龙面板】/【elecV2P】/【群晖】的每日签到脚本(支持多账号使用)签到列表: |爱奇艺|全民K歌|腾讯视频|有道云笔记|网易云音乐|一加手机社区官方论坛|百度贴吧|Bilibili|V2EX|咔叽网单|什么值得买|AcFun|天翼云盘|吾爱破解|芒果TV|Fa米家|小米运动|百度搜索资源平台|时光相册|哔咔漫画|联通营业厅|

doprax101 icon doprax101

The tool can install v2ray on the Doprax, including VMess and VLess protocols, it will automatically switch IP, you need to fork this projects, read readme.md and run it. Create By ifeng.

freenom icon freenom

Freenom 域名自动续期。Freenom domain name renews automatically.

frp icon frp

Docker Image packaging for Frp. (amd64, arm32v6, arm32v7, arm64v8, i386)

herokuxray icon herokuxray

使用Heroku部署Xray高性能代理服务,通过ws传输的 (vmess、vless、trojan shadowsocks、socks)等协议

heytaptask icon heytaptask

适配青龙面板/云函数/本地运行的欢太商城脚本

jd-depot icon jd-depot

京东仓库,北京总部,经过审查放心食用,仅支持青龙面板

jd_sign icon jd_sign

某东 sign 算法(如果您有),使用 docker 部署到服务器中或使用 actions 部署到腾讯云 serverless 中。

jd_tencent_scf icon jd_tencent_scf

自用京东JS脚本,已加入助力池;支持【青龙】、【腾讯云函数】、【elecV2P】;低调使用,请勿fork!!!

jddj icon jddj

京东到家果园庄园脚本,电报群:https://t.me/passerbyb2021

jsjiemi icon jsjiemi

基于正则匹配的 JavaScript 解密工具。请务必遵守开源协议,不得用于非法或商业用途。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.