1、创建config.js文件
2、在config文件中通过__wxConfig.envVersion获取小程序当前版本
envVersion: 'develop', //开发版
envVersion: 'trial', //体验版
envVersion: 'release', //正式版
也可以根据官方api来获取版本:https://developers.weixin.qq.com/miniprogram/dev/api/open-api/account-info/wx.getAccountInfoSync.html
3、通过版本匹配接口
