GithubHelp home page GithubHelp logo

Comments (3)

zhengxs2018 avatar zhengxs2018 commented on July 18, 2024 4

这种通过是自己封装的,通常的做法是后端提供一个获取服务器时间的接口,如果涉及到地区可能还会有其他的要处理,保留的服务器时间通常为:

本次服务器请求返回的服务器时间 + 本次请求到响应的毫秒数

可以在应用挂载前,先校验下时间,如果涉及到一些特殊接口,那可能会调用真实接口前,再次校对时间。

很多第三方开源项目,通常不考虑服务器时间,主要也是 时区、校对 和 使用场景 可能因业务出现不同,对开源项目来说,这是一个负担。

from mall-cook.

lrxCn avatar lrxCn commented on July 18, 2024

应该用服务器时间做校准

from mall-cook.

yushiyoubj avatar yushiyoubj commented on July 18, 2024

请问谁方便提供一个群二维码,我想加入一下mall-cook群

from mall-cook.

Related Issues (20)

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.