
提示:wx.getSystemInfoSync is deprecated.Please use wx.getSystemSetting/wx.getAppAuthorizeSetting/wx.getDeviceInfo/wx.getWindowInfo/wx.getAppBaseInfo instead.
找到使用wx.getSystemInfoSync的位置。

并查看该脚本使用到了需要此接口的哪些信息。

显示用到了getSystemInfoSync.SDKVersion的基础库版本信息
然后在wx.getSystemSetting/wx.getAppAuthorizeSetting/wx.getDeviceInfo/wx.getWindowInfo/wx.getAppBaseInfo这5个API中查看哪个API可以获取SDKVersion信息。
在微信官方文档得知wx.getAppBaseInfo能获取SDKVersion。
然后将wx.getSystemInfoSync替换成wx.getAppBaseInfo,
点击替换,提示就不再出现了。
1265

被折叠的 条评论
为什么被折叠?



