From 9f3aba18a42caf97398752f4fbc1d225885d65c9 Mon Sep 17 00:00:00 2001 From: fxy060608 Date: Thu, 30 May 2019 14:02:37 +0800 Subject: [PATCH] fix(mp-alipay): showLoading --- packages/uni-mp-alipay/dist/index.js | 2 +- packages/uni-mp-alipay/package.json | 2 +- src/platforms/mp-alipay/service/api/protocols.js | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/uni-mp-alipay/dist/index.js b/packages/uni-mp-alipay/dist/index.js index 1a7500e49..976ba3a1d 100644 --- a/packages/uni-mp-alipay/dist/index.js +++ b/packages/uni-mp-alipay/dist/index.js @@ -222,7 +222,7 @@ function _handleSystemInfo (result) { } const protocols = { // 需要做转换的 API 列表 - returnValue (methodName, res) { // 通用 returnValue 解析 + returnValue (methodName, res = {}) { // 通用 returnValue 解析 if (res.error || res.errorMessage) { res.errMsg = `${methodName}:fail ${res.errorMessage || res.error}`; delete res.error; diff --git a/packages/uni-mp-alipay/package.json b/packages/uni-mp-alipay/package.json index 0200a1ad0..6984a2c92 100644 --- a/packages/uni-mp-alipay/package.json +++ b/packages/uni-mp-alipay/package.json @@ -1,6 +1,6 @@ { "name": "@dcloudio/uni-mp-alipay", - "version": "0.0.812", + "version": "0.0.813", "description": "uni-app mp-alipay", "main": "dist/index.js", "scripts": { diff --git a/src/platforms/mp-alipay/service/api/protocols.js b/src/platforms/mp-alipay/service/api/protocols.js index d770544d1..d522092e8 100644 --- a/src/platforms/mp-alipay/service/api/protocols.js +++ b/src/platforms/mp-alipay/service/api/protocols.js @@ -74,7 +74,7 @@ function _handleSystemInfo (result) { } const protocols = { // 需要做转换的 API 列表 - returnValue (methodName, res) { // 通用 returnValue 解析 + returnValue (methodName, res = {}) { // 通用 returnValue 解析 if (res.error || res.errorMessage) { res.errMsg = `${methodName}:fail ${res.errorMessage || res.error}` delete res.error -- GitLab