- 小程序调用 new Date.getDate() 获取的日期是昨天的日期
早上9点,小程序调用 new Date.getDate() iphone13 pro 上获取的是昨天的日期,手机上没调过时区,默认是北京时区微信开发者工具获取的是系统日期,是对的[图片][图片][图片]
2023-04-27 - 微信小程序new Date()获取错误时区,北京市区获取成北美时区
北京时间获取后变成这样 =》 Wed Apr 26 2023 22:39:19 GMT-0500 (北美中部夏令时间)
2023-04-27 - 微信小程序wx.getLocation 大批量出现走fail情况
wx.getLocation({ type: 'gcj02', success: resolve, fail: ({ errMsg }) => { console.log('errM=>>>>', errMsg) log.error(errMsg) if (errMsg.indexOf('system') > -1) { const content = `请开启微信定位:${isIOS() ? '手机系统设置—微信—定位权限' : '手机系统设置—应用管理—微信—定位权限'}。定位开启后可刷新页面。` return modal('未开启微信定位', content, '刷新', () => refresh(path)) } if (errMsg.indexOf('auth') > -1) { return modal('未打开小程序定位', '找不到您的位置,请开启定位', '开启定位', () => authen(path)) } // if (msg.indexOf('ERROR_NOCELL&WIFI_LOCATIONSWITCHOFF') > -1) {} modal('未开启手机GPS', '请打开手机定位权限(屏幕下拉权限中的位置权限)', '刷新', () => refresh(path)) } })) 拦截到的日志 getLocation:fail:internal error invalid android context getLocation:fail:ERROR_NETWORK getLocation:fail:ERROR_NOCELL&WIFI_LOCATIONSWITCHOFF
2022-03-05 - getLocation 配置了requiredPrivateInfos为什么还会报错?
根据文档在app.json中requiredPrivateInfos配置了getLocation ,为什么线上还有用户会报getLocation:fail the api need to be declared in the requiredPrivateInfos field in app.json/ext.json
2022-07-15 - requiredPrivateInfos配置,在编辑器上报警告?
[图片]
2022-07-14