@@ -1042,7 +1042,7 @@ export const wxConfig = function (configInfo, userInfo, cb) {
// 微信扫码
export const wxScanCode = function (scanType = ['qrCode', 'barCode']) {
return new Promise((resolve, reject) => {
- mini_env(function () {
+ mini_env(function (bool) {
if (bool) {
wx.scanQRCode({
needResult: 1, // 默认为0,扫描结果由微信处理,1则直接返回扫描结果,