From 7bf53618fbc68d657fba622caef397547264e5ee Mon Sep 17 00:00:00 2001 From: yurj26 <1816387074@qq.com> Date: Tue, 13 Jun 2023 15:22:24 +0800 Subject: [PATCH] =?UTF-8?q?=E8=A1=A5=E5=85=85=E5=B9=B3=E5=8F=B0=E5=B7=AE?= =?UTF-8?q?=E5=BC=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uni_modules/uni-getbatteryinfo/package.json | 7 ++- .../utssdk/mp-alipay/index.js | 3 + .../utssdk/mp-baidu/index.js | 3 + .../uni-getbatteryinfo/utssdk/mp-qq/index.js | 3 + .../utssdk/mp-weixin/index.js | 3 + uni_modules/uni-memorywarning/package.json | 30 +++++----- .../uni-usercapturescreen/package.json | 13 +++- uni_modules/uni-wifi/package.json | 60 +++++++++++++------ 8 files changed, 83 insertions(+), 39 deletions(-) diff --git a/uni_modules/uni-getbatteryinfo/package.json b/uni_modules/uni-getbatteryinfo/package.json index 094b6ba..7cdaaeb 100644 --- a/uni_modules/uni-getbatteryinfo/package.json +++ b/uni_modules/uni-getbatteryinfo/package.json @@ -32,7 +32,12 @@ }, "uni_modules": { "uni-ext-api": { - "uni": ["getBatteryInfo", "getBatteryInfoSync"] + "uni": { + "getBatteryInfo": "getBatteryInfo", + "getBatteryInfoSync": { + "web": false + } + } }, "dependencies": [], "encrypt": [], diff --git a/uni_modules/uni-getbatteryinfo/utssdk/mp-alipay/index.js b/uni_modules/uni-getbatteryinfo/utssdk/mp-alipay/index.js index 4fdced2..473f1a0 100644 --- a/uni_modules/uni-getbatteryinfo/utssdk/mp-alipay/index.js +++ b/uni_modules/uni-getbatteryinfo/utssdk/mp-alipay/index.js @@ -1,3 +1,6 @@ export function getBatteryInfo(options) { return my.getBatteryInfo(options) } +export function getBatteryInfoSync(options) { + return my.getBatteryInfoSync(options) +} diff --git a/uni_modules/uni-getbatteryinfo/utssdk/mp-baidu/index.js b/uni_modules/uni-getbatteryinfo/utssdk/mp-baidu/index.js index 5944a77..1ee373a 100644 --- a/uni_modules/uni-getbatteryinfo/utssdk/mp-baidu/index.js +++ b/uni_modules/uni-getbatteryinfo/utssdk/mp-baidu/index.js @@ -1,3 +1,6 @@ export function getBatteryInfo(options) { return swan.getBatteryInfo(options) } +export function getBatteryInfoSync(options) { + return swan.getBatteryInfoSync(options) +} diff --git a/uni_modules/uni-getbatteryinfo/utssdk/mp-qq/index.js b/uni_modules/uni-getbatteryinfo/utssdk/mp-qq/index.js index 06287bc..6eabfcf 100644 --- a/uni_modules/uni-getbatteryinfo/utssdk/mp-qq/index.js +++ b/uni_modules/uni-getbatteryinfo/utssdk/mp-qq/index.js @@ -1,3 +1,6 @@ export function getBatteryInfo(options) { return qq.getBatteryInfo(options) } +export function getBatteryInfoSync(options) { + return qq.getBatteryInfoSync(options) +} diff --git a/uni_modules/uni-getbatteryinfo/utssdk/mp-weixin/index.js b/uni_modules/uni-getbatteryinfo/utssdk/mp-weixin/index.js index 5124b3d..3bdfa91 100644 --- a/uni_modules/uni-getbatteryinfo/utssdk/mp-weixin/index.js +++ b/uni_modules/uni-getbatteryinfo/utssdk/mp-weixin/index.js @@ -1,3 +1,6 @@ export function getBatteryInfo(options) { return wx.getBatteryInfo(options) } +export function getBatteryInfoSync(options) { + return wx.getBatteryInfoSync(options) +} diff --git a/uni_modules/uni-memorywarning/package.json b/uni_modules/uni-memorywarning/package.json index aa015a9..9bda0f8 100644 --- a/uni_modules/uni-memorywarning/package.json +++ b/uni_modules/uni-memorywarning/package.json @@ -5,7 +5,7 @@ "description": "UTS 实现内存警告监听", "keywords": [ "onMemoryWarning" -], + ], "repository": "", "engines": { "HBuilderX": "^3.6.11" @@ -31,18 +31,16 @@ "npmurl": "" }, "uni_modules": { - "uni-ext-api":{ - "uni": { - "onMemoryWarning": "onMemoryWarning", - "offMemoryWarning":"offMemoryWarning" - }, - "mp-weixin":false, - "mp-alipay":false, - "mp-baidu":false, - "mp-qq":false, - "mp-kuaishou":false, - "mp-jd":false - }, + "uni-ext-api": { + "uni": { + "onMemoryWarning": { + "web": false + }, + "offMemoryWarning": { + "web": false + } + } + }, "dependencies": [], "encrypt": [], "platforms": { @@ -58,10 +56,10 @@ "App": { "app-android": { "minVersion": "19" - }, + }, "app-ios": { "minVersion": "9" - } + } }, "H5-mobile": { "Safari": "n", @@ -94,4 +92,4 @@ } } } -} \ No newline at end of file +} diff --git a/uni_modules/uni-usercapturescreen/package.json b/uni_modules/uni-usercapturescreen/package.json index f1e4ca2..6b099cf 100644 --- a/uni_modules/uni-usercapturescreen/package.json +++ b/uni_modules/uni-usercapturescreen/package.json @@ -33,9 +33,16 @@ "uni_modules": { "uni-ext-api":{ "uni": { - "onUserCaptureScreen": "onUserCaptureScreen", - "offUserCaptureScreen": "offUserCaptureScreen", - "setUserCaptureScreen": "setUserCaptureScreen" + "onUserCaptureScreen": { + "web": false + }, + "offUserCaptureScreen": { + "web": false + }, + "setUserCaptureScreen": { + "web": false, + "mp-weixin": false + } } }, "dependencies": [], diff --git a/uni_modules/uni-wifi/package.json b/uni_modules/uni-wifi/package.json index b44e757..c4a2ce6 100644 --- a/uni_modules/uni-wifi/package.json +++ b/uni_modules/uni-wifi/package.json @@ -5,7 +5,7 @@ "description": "wifi管理", "keywords": [ "wifi" -], + ], "repository": "", "engines": { "HBuilderX": "^3.6.11" @@ -31,21 +31,43 @@ "npmurl": "" }, "uni_modules": { - "uni-ext-api":{ - "uni": { - "startWifi": "startWifi", - "stopWifi": "stopWifi", - "connectWifi":"connectWifi", - "getConnectedWifi": "getConnectedWifi", - "getWifiList":"getWifiList", - "onGetWifiList":"onGetWifiList", - "offGetWifiList":"offGetWifiList", - "onWifiConnected":"onWifiConnected", - "offWifiConnected":"offWifiConnected", - "onWifiConnectedWithPartialInfo":"onWifiConnectedWithPartialInfo", - "offWifiConnectedWithPartialInfo":"offWifiConnectedWithPartialInfo" - } - }, + "uni-ext-api": { + "uni": { + "startWifi": { + "web": false + }, + "stopWifi": { + "web": false + }, + "connectWifi": { + "web": false + }, + "getConnectedWifi": { + "web": false + }, + "getWifiList": { + "web": false + }, + "onGetWifiList": { + "web": false + }, + "offGetWifiList": { + "web": false + }, + "onWifiConnected": { + "web": false + }, + "offWifiConnected": { + "web": false + }, + "onWifiConnectedWithPartialInfo": { + "web": false + }, + "offWifiConnectedWithPartialInfo": { + "web": false + } + } + }, "dependencies": [], "encrypt": [], "platforms": { @@ -61,10 +83,10 @@ "App": { "app-android": { "minVersion": "19" - }, + }, "app-ios": { "minVersion": "9" - } + } }, "H5-mobile": { "Safari": "n", @@ -97,4 +119,4 @@ } } } -} \ No newline at end of file +} -- GitLab