diff --git a/packages/uni-mp-alipay/dist/index.js b/packages/uni-mp-alipay/dist/index.js index 8c0c767c338ee91b54da5b2d81110c664e38b3fa..07d9e8f89502c94151dfb49c23c8158da1c3b00a 100644 --- a/packages/uni-mp-alipay/dist/index.js +++ b/packages/uni-mp-alipay/dist/index.js @@ -289,7 +289,7 @@ function wrapper (methodName, method) { const protocol = protocols[methodName]; if (!protocol) { // 暂不支持的 api return function () { - throw new Error(`支付宝小程序 暂不支持${methodName}`) + console.error(`支付宝小程序 暂不支持${methodName}`); } } return function (arg1, arg2) { // 目前 api 最多两个参数 diff --git a/src/core/runtime/wrapper.js b/src/core/runtime/wrapper.js index 6189636fb8f43439e1973c4a47c7227407ca1809..d79f28a3c84f31c623b680016868e70317e2804e 100644 --- a/src/core/runtime/wrapper.js +++ b/src/core/runtime/wrapper.js @@ -63,7 +63,7 @@ export default function wrapper (methodName, method) { const protocol = protocols[methodName] if (!protocol) { // 暂不支持的 api return function () { - throw new Error(`__PLATFORM_TITLE__ 暂不支持${methodName}`) + console.error(`__PLATFORM_TITLE__ 暂不支持${methodName}`) } } return function (arg1, arg2) { // 目前 api 最多两个参数