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
你好,麻烦提供出现问题的具体机型、微信版本号、系统版本号,以及能复现问题的代码片段(https://developers.weixin.qq.com/miniprogram/dev/devtools/minicode.html)
手机是:iphone8 plus 手机系统15.7.9 微信版本号8.0.45
问题是:getBackgroundFetchData 返回的timeStamp 单位不是毫秒。