8000 GitHub - kevin-mob/timecalibration: 客户端时间矫正,通过任意网络请求即可获取准确的服务器时间
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

kevin-mob/timecalibration

Repository files navigation

Timer Calibration

作用

不依赖客户端时钟获取精确的时间,防止用户手动更改本地时间。

用法

将ServerTimeInterceptor拦截器加入OkHttp中,当有网络请求产生后,调用TimeUtil.getCurrentTimeMillis()即可获取时间。

原理

https://www.jianshu.com/p/6292735f0538

About

客户端时间矫正,通过任意网络请求即可获取准确的服务器时间

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0