收藏
回答

wx.getWeRunData 在国外只能获取前一天的步数么?

{"stepInfoList":[{"timestamp":1650643200,"step":0},{"

timestamp":1650729600,"step":0},{"timestamp":1650816000,"step":0},{"timestamp":1

650902400,"step":0},{"timestamp":1650988800,"step":0},{"timestamp":1651075200,"s

tep":0},{"timestamp":1651161600,"step":0},{"timestamp":1651248000,"step":0},{"ti

mestamp":1651334400,"step":0},{"timestamp":1651420800,"step":0},{"timestamp":165

1507200,"step":0},{"timestamp":1651593600,"step":0},{"timestamp":1651680000,"ste

p":0},{"timestamp":1651766400,"step":0},{"timestamp":1651852800,"step":0},{"time

stamp":1651939200,"step":0},{"timestamp":1652025600,"step":0},{"timestamp":16521

12000,"step":0},{"timestamp":1652198400,"step":0},{"timestamp":1652284800,"step"

:0},{"timestamp":1652371200,"step":0},{"timestamp":1652457600,"step":0},{"timest

amp":1652544000,"step":0},{"timestamp":1652630400,"step":0},{"timestamp":1652716

800,"step":0},{"timestamp":1652803200,"step":0},{"timestamp":1652889600,"step":0

},{"timestamp":1652976000,"step":0},{"timestamp":1653062400,"step":0},{"timestam

p":1653148800,"step":5520},{"timestamp":1653235200,"step":11117}],"watermark":{"

timestamp":1653317645,"appid":"xxx"}}

1653235200时间是23号,但是11117是昨天的22号的步数,时差5个小时,请问如何解决呢?

今天的步数微信上显示正常,但是API无法读出来,服务器在国内的云上

国内的微信无问题

回答关注问题邀请回答
收藏

3 个回答

  • Demons
    Demons
    2022-05-24

    请具体描述问题出现的流程,并提供能复现问题的简单代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)。

    2022-05-24
    有用
    回复 2
    • 毛毛虫
      毛毛虫
      2022-05-24
      我们做一个
      2022-05-24
      回复
    • 毛毛虫
      毛毛虫
      2022-05-24
      图1是北京时区,时间戳:1653321600 为今天 2022-05-24 步数450步没问题
      图2是国外时区,时间戳:1653321600为今天 2022-05-24,步数是1466 (昨天的步数是这个)
      代码片段:(https://developers.weixin.qq.com/s/vhsHQum67NzC
      背景是:根据运动步数的活动图,每日提交个人的步数的活动,不局限于国内和国际,昨天国外的用户发来这个问题,跟踪日志获后跟下图及demo返回的是一样的
      2022-05-24
      回复
  • 2022-08-11

    我也遇到了,国外的返回的是昨天的,今天的无法获取到

    2022-08-11
    有用
    回复
  • 毛毛虫
    毛毛虫
    2022-05-24

    把手机的时区改成非北京,获取到的步数就是昨天的步数了,无法获取到今天的最新步数

    请问官方如何解决

    2022-05-24
    有用
    回复
登录 后发表内容