From 2bee7193bac9efcac255a9cff58f0ad34f19c536 Mon Sep 17 00:00:00 2001 From: xiaoyucoding Date: Thu, 17 Jan 2019 19:48:32 +0800 Subject: [PATCH] modify: mp-alipay API --- .../mp-alipay/service/api/protocols.js | 43 ++++++++++++++----- 1 file changed, 32 insertions(+), 11 deletions(-) diff --git a/src/platforms/mp-alipay/service/api/protocols.js b/src/platforms/mp-alipay/service/api/protocols.js index e36912c5c..81b46b227 100644 --- a/src/platforms/mp-alipay/service/api/protocols.js +++ b/src/platforms/mp-alipay/service/api/protocols.js @@ -1,13 +1,5 @@ -const TODOS = [ // 不支持的 API 列表 - 'hideTabBar', - 'hideTabBarRedDot', - 'removeTabBarBadge', - 'setTabBarBadge', - 'setTabBarItem', - 'setTabBarStyle', - 'showTabBar', - 'showTabBarRedDot', - 'startPullDownRefresh', +// 不支持的 API 列表 +const TODOS = [ 'saveImageToPhotosAlbum', 'getRecorderManager', 'getBackgroundAudioManager', @@ -15,11 +7,40 @@ const TODOS = [ // 不支持的 API 列表 'chooseVideo', 'saveVideoToPhotosAlbum', 'createVideoContext', + 'createCameraContext', + 'createLivePlayerContext', 'openDocument', + 'onMemoryWarning', 'startAccelerometer', 'startCompass', 'addPhoneContact', - 'createIntersectionObserver' + 'setTabBarItem', + 'setTabBarStyle', + 'hideTabBar', + 'showTabBar', + 'setTabBarBadge', + 'removeTabBarBadge', + 'showTabBarRedDot', + 'hideTabBarRedDot', + 'setBackgroundColor', + 'setBackgroundTextStyle', + 'startPullDownRefresh', + 'createIntersectionObserver', + 'authorize', + 'openSetting', + 'getSetting', + 'chooseAddress', + 'chooseInvoiceTitle', + 'addTemplate', + 'deleteTemplate', + 'getTemplateLibraryById', + 'getTemplateLibraryList', + 'getTemplateList', + 'sendTemplateMessage', + 'getUpdateManager', + 'setEnableDebug', + 'getExtConfig', + 'getExtConfigSync' ] function _handleNetworkInfo (result) { -- GitLab