From b7c0e2749cede6cc153a378c9b1fd15ce66822f7 Mon Sep 17 00:00:00 2001 From: xiaoyucoding Date: Wed, 27 Feb 2019 12:47:30 +0800 Subject: [PATCH] fix: mp-alipay ScreenBrightness --- src/platforms/mp-alipay/service/api/protocols.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/src/platforms/mp-alipay/service/api/protocols.js b/src/platforms/mp-alipay/service/api/protocols.js index e0da45b028..131d87e683 100644 --- a/src/platforms/mp-alipay/service/api/protocols.js +++ b/src/platforms/mp-alipay/service/api/protocols.js @@ -346,6 +346,16 @@ const protocols = { // 需要做转换的 API 列表 // 真机的情况下会有 tempFilePath 这个值,因此需要主动修改。 result.tempFilePath = result.apFilePath } + }, + setScreenBrightness: { + args: { + value: 'brightness' + } + }, + getScreenBrightness: { + returnValue: { + brightness: 'value' + } } } -- GitLab