提交 9055bbeb 编写于 作者: fxy060608's avatar fxy060608

优化平台不支持 api 时日志输出

上级 59c88b61
......@@ -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 最多两个参数
......
......@@ -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 最多两个参数
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册