From 18c0a6835e78cb4bc0a0562ed4ca7ef75b14ac69 Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Thu, 8 Dec 2022 17:34:46 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0uni.getAccountInfoSync?= =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=90=84=E5=B9=B3=E5=8F=B0=E5=B7=AE=E5=BC=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/api/other/getAccountInfoSync.md | 28 ++++++++++++---------------- 1 file changed, 12 insertions(+), 16 deletions(-) diff --git a/docs/api/other/getAccountInfoSync.md b/docs/api/other/getAccountInfoSync.md index 3b4c6ec3e..588fc02e4 100644 --- a/docs/api/other/getAccountInfoSync.md +++ b/docs/api/other/getAccountInfoSync.md @@ -1,13 +1,12 @@ - #### uni.getAccountInfoSync() -获取当前帐号信息,可以返回小程序的Appid。如果使用了微信小程序的云端插件,还可以反馈插件的id和版本 +获取当前帐号信息,可以返回小程序的Appid。如果使用了微信小程序的云端插件,还可以返回当前插件Appid、版本号。 **平台差异说明** |App|H5|微信小程序|支付宝小程序|百度小程序|字节跳动小程序、飞书小程序|QQ小程序|快手小程序|京东小程序| |:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:|:-:| -|x|x|√|x|√|x|√|√|√| +|x|x|√|√|x|x|√|√|√| **返回值** @@ -15,29 +14,26 @@ 帐号信息 -| 属性 | 类型 | 说明 | -| --- | --- | --- | -| miniProgram | Object| 小程序帐号信息 | -| plugin | Object | 插件帐号信息(仅在插件中调用时包含这一项) | -| appName | string| 智能小程序名称 (仅百度小程序支持) | -| lastAppURL | string| 智能小程序最近一次打开的调起协议 (仅百度小程序支持) | -| scheme | string| 调起协议的协议头 (仅百度小程序支持) | +| 属性 | 类型 | 说明 |平台差异说明| +| --- | --- | --- |--- | +| miniProgram | Object| 小程序帐号信息 || +| plugin | Object | 插件帐号信息(仅在插件中调用时包含这一项) |京东、快手小程序不支持| **miniProgram 的结构** -| 属性 | 类型 | 说明 | -| --- | --- | --- | -| appId | string | 小程序 appId | -| envVersion| string | 小程序 当前环境版本:`develop`、`trial`、`release` | -| version| string | 版本号 | +| 属性 | 类型 | 说明 |平台差异说明| +| --- | --- | --- |--- | +| appId | string | 小程序 appId || +| envVersion| string | 小程序 当前环境版本:`develop`开发版、`trial`体验版、`release`正式版、`gray`灰度版(仅支付宝小程序支持) |京东小程序不支持| +| version| string | 线上小程序版本号(仅在正式版小程序上支持) |京东小程序不支持| **plugin 的结构** | 属性 | 类型 | 说明 | | --- | --- | --- | -| appId | string | 插件 appId (百度小程序不支持) | +| appId | string | 插件 appId | | version | string | 插件版本号 | -- GitLab