From 9055bbeb174ed3105c0e508a28e0436d8dc75b13 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Mon, 10 Dec 2018 16:08:45 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=B9=B3=E5=8F=B0=E4=B8=8D?= =?UTF-8?q?=E6=94=AF=E6=8C=81=20api=20=E6=97=B6=E6=97=A5=E5=BF=97=E8=BE=93?= =?UTF-8?q?=E5=87=BA?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/uni-mp-alipay/dist/index.js | 2 +- src/core/runtime/wrapper.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/uni-mp-alipay/dist/index.js b/packages/uni-mp-alipay/dist/index.js index 8c0c767c33..07d9e8f895 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 6189636fb8..d79f28a3c8 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 最多两个参数 -- GitLab