收藏
回答

IOS 上 getBackgroundFetchData 周期性更新返回时间不正确?

wx.getBackgroundFetchData({

fetchType:"periodic",

success:(res)=>{

console.log(res.timeStamp)

console.log("周期性更新数据的时间:",new Date(res.timeStamp)),

console.log("getBackgroundFetchData success:",res)

},

fail(res){

console.log("getBackgroundFetchData fail:",res)

},

complete(res){

console.log("getBackgroundFetchData complete:",res)

}

})

在IOS手机上,上面new Date(res.timeStamp)) 转换后,变成了1970年,安卓是正常的。客户端是8.0.45,基础库3.3.0

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

1 个回答

  • 社区技术运营专员--许涛
    社区技术运营专员--许涛
    2023-12-28

    你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)

    2023-12-28
    有用
    回复 2
登录 后发表内容