From aadd6a345ad9221f7c8a43a4a55e102494cb93bc Mon Sep 17 00:00:00 2001 From: wanganxp Date: Sat, 8 Jun 2024 00:11:59 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=8C=E5=96=84=E8=AE=BE=E5=A4=87=E4=BF=A1?= =?UTF-8?q?=E6=81=AF=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/get-device-info.md | 3 ++- docs/api/get-system-info.md | 36 ++++++++++++++++++++++++++++++++++++ 2 files changed, 38 insertions(+), 1 deletion(-) diff --git a/docs/api/get-device-info.md b/docs/api/get-device-info.md index 8b2982de..3cce095e 100644 --- a/docs/api/get-device-info.md +++ b/docs/api/get-device-info.md @@ -8,7 +8,8 @@ -获取OAID、AndroidID等其他设备信息,[见插件市场](https://ext.dcloud.net.cn/search?q=oaid&orderBy=Relevance&uni-appx=1) +- 获取OAID、AndroidID等其他设备信息,[见插件市场](https://ext.dcloud.net.cn/search?q=oaid&orderBy=Relevance&uni-appx=1) +- romName值域候选 [详见](./get-system-info.md#romName) diff --git a/docs/api/get-system-info.md b/docs/api/get-system-info.md index 9cdec1a0..2b135be0 100644 --- a/docs/api/get-system-info.md +++ b/docs/api/get-system-info.md @@ -25,6 +25,39 @@ uni-app 提供了异步(`uni.getSystemInfo`)和同步(`uni.getSystemInfoSync`) - appTheme如取值为`auto`,代表跟随系统。此时需查询osTheme获取当前到底是light还是dark。 - 获取OAID、AndroidID等其他设备信息,[见插件市场](https://ext.dcloud.net.cn/search?q=oaid&orderBy=Relevance&uni-appx=1) +#### romName 返回值说明 @romname + +|值|解释| +|:-|:-| +|MIUI|小米| +|EMUI|华为| +|HarmonyOS|华为鸿蒙| +|Magic OS|荣耀| +|ColorOS|oppo| +|Funtouch OS|vivo| +|FLymeOS|魅族| +|SmartisanOS|锤子| + +注意:不同rom的版本号规则不同,比如`MIUI`版本号是`V130`,而`HarmonyOS`的版本号是`2.0.0` + +#### hostName 返回值说明 @hostname + +|值|解释| +|:-|:-| +|WeChat|微信| +|wxwork|微信企业版| +|[百度宿主平台枚举值列表](https://smartprogram.baidu.com/docs/develop/api/device_sys/hostlist/)|百度| +|alipay|支付宝| +|amap|高德| +|DINGTALK|钉钉| +|UC|UC浏览器| +|QUARK|夸克浏览器| +|AK|阿里健康| +|YK|优酷| +|[抖音宿主平台枚举值列表](https://developer.open-douyin.com/docs/resource/zh-CN/mini-app/develop/api/device/system-information/tt-get-system-info/#appname-%E8%AF%B4%E6%98%8E)|抖音系列| +|qq|QQ| +|KUAISHOU|快手| + @@ -33,6 +66,9 @@ uni-app 提供了异步(`uni.getSystemInfo`)和同步(`uni.getSystemInfoSync`) +本API是同步API,仅为上面异步API的同步形式,返回值内容没有区别。但由于本API涉及的查询内容较多,耗时长,一般情况下不推荐同步获取。\ +如果希望使用同步方式,推荐使用分拆后的API:[uni.getDeviceInfo](./get-device-info.md)、[uni.getWindowInfo](./get-window-info.md)、[uni.getAppBaseInfo](./get-app-base-info.md)。 + -- GitLab