fix(mp/points): 替换废弃 getSystemInfo 为 getDeviceInfo/getWindowInfo/getAppBaseInfo
基础库 2.20.1 起 getSystemInfoSync/getSystemInfo 已废弃(3.7.0 起鸿蒙需改用新接口)。 本次消除 points 小程序启动与控制台里的弃用告警: - api/env/index.js: 环境判定改用 getDeviceInfo().platform,旧基础库回退保留 - components/NavigationBar: 拆 statusBarHeight/screenWidth→getWindowInfo、fontSizeSetting→getAppBaseInfo,去 .then - storageApi.setSystem_info: 合并 device/window/appBase 信息后存储,保 Track.js 字段 - packageEquity freecard/allEquity: windowHeight 改 getWindowInfo() - utils_wx.getSystemInfo: 合并五个新接口返回,兼容原有回调契约 - utils/sentry: 清理注释块内两处陈旧引用
Showing
7 changed files
with
41 additions
and
27 deletions
-
Please register or sign in to post a comment