diff --git a/zh-cn/application-dev/reference/apis/js-apis-appAccount.md b/zh-cn/application-dev/reference/apis/js-apis-appAccount.md
index 6104eeb9f27dcf9c9da172d6eb6ead4d3f0ac77f..da43ecfd8c1f9e62325002ce505da8d7ad4ce35b 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-appAccount.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-appAccount.md
@@ -89,7 +89,7 @@ addAccount(name: string, extraInfo: string, callback: AsyncCallback<void>)
### addAccount
-addAccount(name: string, extraInfo: string): Promise<void>
+addAccount(name: string, extraInfo?: string): Promise<void>
将此应用的帐号名或额外信息(能转换成string类型的其它信息)添加到帐号管理服务中,使用Promise方式异步返回结果。
@@ -100,7 +100,7 @@ addAccount(name: string, extraInfo: string): Promise<void>
| 参数名 | 类型 | 必填 | 说明 |
| --------- | ------ | ---- | ---------------------------------------- |
| name | string | 是 | 要添加的应用帐号名称。 |
-| extraInfo | string | 是 | 要添加的应用帐号的额外信息(能转换成string类型的其它信息),额外信息不能是应用帐号的敏感信息(如应用账号密码)。 |
+| extraInfo | string | 否 | 要添加的应用帐号的额外信息(能转换成string类型的其它信息),额外信息不能是应用帐号的敏感信息(如应用账号密码)。 |
**返回值:**
@@ -1696,7 +1696,7 @@ checkAccountLabels(name: string, owner: string, labels: Array<string>, cal
| name | string | 是 | 应用帐户的名称。 |
| owner | string | 是 | 应用帐户的所有者。|
| labels | Array<string> | 是 | 标签数组。 |
-| callback | AsyncCallback<void> | 是 | 检查结果的回调。 |
+| callback | AsyncCallback<boolean> | 是 | 检查结果的回调。 |
**示例:**
@@ -1710,7 +1710,7 @@ checkAccountLabels(name: string, owner: string, labels: Array<string>, cal
### checkAccountLabels9+
-checkAccountLabels(name: string, owner: string, labels: Array<string>): Promise<void>
+checkAccountLabels(name: string, owner: string, labels: Array<string>): Promise<boolean>
检查指定帐户是否具有特定的标签集合,使用Promise方式异步返回结果。
@@ -1771,7 +1771,7 @@ selectAccountsByOptions(options: SelectAccountsOptions, callback: AsyncCallback&
### selectAccountsByOptions9+
-selectAccountsByOptions(options: SelectAccountsOptions): Promise<void>
+selectAccountsByOptions(options: SelectAccountsOptions): Promise<Array<AppAccountInfo>>
根据选项选择请求方可访问的帐户列表,使用Promise方式异步返回结果。
@@ -1836,7 +1836,7 @@ verifyCredential(name: string, owner: string, callback: AuthenticatorCallback):
### verifyCredential9+
-verifyCredential(name: string, owner: string, options, callback: AuthenticatorCallback): void;
+verifyCredential(name: string, owner: string, options: VerifyCredentialOptions, callback: AuthenticatorCallback): void;
验证用户凭据,使用callback回调异步返回结果。
@@ -1952,10 +1952,11 @@ setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callbac
**系统能力:** 以下各项对应的系统能力均为SystemCapability.Account.AppAccount。
-| 参数名 | 类型 | 必填 | 说明 |
-| -------- | ------ | ---- | -------- |
-| authType | string | 是 | 令牌的鉴权类型。 |
-| token | string | 是 | 令牌的取值。 |
+| 参数名 | 类型 | 必填 | 说明 |
+| -------- | -------------- | ---- | ----------------- |
+| authType | string | 是 | 令牌的鉴权类型。 |
+| token | string | 是 | 令牌的取值。 |
+| account | AppAccountInfo | 否 | 令牌所属的帐号信息。|
## AuthenticatorInfo8+
@@ -2011,21 +2012,21 @@ setAuthenticatorProperties(owner: string, options: SetPropertiesOptions, callbac
**系统能力:** 以下各项对应的系统能力均为SystemCapability.Account.AppAccount。
-| 名称 | 默认值 | 说明 |
-| ----------------------------- | ---------------------- | ------------- |
-| ACTION_ADD_ACCOUNT_IMPLICITLY | "addAccountImplicitly" | 表示操作,隐式添加帐号。 |
-| ACTION_AUTHENTICATE | "authenticate" | 表示操作,鉴权。 |
-| KEY_NAME | "name" | 表示键名,应用帐号名称。 |
-| KEY_OWNER | "owner" | 表示键名,应用帐号所有者。 |
-| KEY_TOKEN | "token" | 表示键名,令牌。 |
-| KEY_ACTION | "action" | 表示键名,操作。 |
-| KEY_AUTH_TYPE | "authType" | 表示键名,鉴权类型。 |
-| KEY_SESSION_ID | "sessionId" | 表示键名,会话标识。 |
-| KEY_CALLER_PID | "callerPid" | 表示键名,调用方PID。 |
-| KEY_CALLER_UID | "callerUid" | 表示键名,调用方UID。 |
-| KEY_CALLER_BUNDLE_NAME | "callerBundleName" | 表示键名,调用方包名。 |
-| KEY_REQUIRED_LABELS | "requiredLabels" | 表示键名,必需的标签。 |
-| KEY_BOOLEAN_RESULT | "booleanResult" | 表示键名,布尔返回值。 |
+| 名称 | 默认值 | 说明 |
+| -------------------------------- | ---------------------- | ----------------------- |
+| ACTION_ADD_ACCOUNT_IMPLICITLY | "addAccountImplicitly" | 表示操作,隐式添加帐号。 |
+| ACTION_AUTHENTICATE | "authenticate" | 表示操作,鉴权。 |
+| KEY_NAME | "name" | 表示键名,应用帐号名称。 |
+| KEY_OWNER | "owner" | 表示键名,应用帐号所有者。|
+| KEY_TOKEN | "token" | 表示键名,令牌。 |
+| KEY_ACTION | "action" | 表示键名,操作。 |
+| KEY_AUTH_TYPE | "authType" | 表示键名,鉴权类型。 |
+| KEY_SESSION_ID | "sessionId" | 表示键名,会话标识。 |
+| KEY_CALLER_PID | "callerPid" | 表示键名,调用方PID。 |
+| KEY_CALLER_UID | "callerUid" | 表示键名,调用方UID。 |
+| KEY_CALLER_BUNDLE_NAME | "callerBundleName" | 表示键名,调用方包名。 |
+| KEY_REQUIRED_LABELS9+ | "requiredLabels" | 表示键名,必需的标签。 |
+| KEY_BOOLEAN_RESULT9+ | "booleanResult" | 表示键名,布尔返回值。 |
## ResultCode8+
@@ -2124,7 +2125,7 @@ onRequestRedirected: (request: Want) => void
### onRequestContinued9+
-onRequestContinued: () => void
+onRequestContinued?: () => void
通知请求被继续处理。
diff --git a/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md b/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md
index f6e715f41a98d066a88c4dc58c2064ee63dba262..b732f93c73422cd4bfeafc01ca25962202fef2a1 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-distributed-account.md
@@ -43,7 +43,7 @@ queryOsAccountDistributedInfo(callback: AsyncCallback<DistributedInfo>): v
**系统能力:** SystemCapability.Account.OsAccount
-**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC,该权限仅供系统应用使用。
+**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC。
- 参数:
| 参数名 | 类型 | 必填 | 说明 |
@@ -68,7 +68,7 @@ queryOsAccountDistributedInfo(): Promise<DistributedInfo>
**系统能力:** SystemCapability.Account.OsAccount
-**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC,该权限仅供系统应用使用。
+**需要权限:** ohos.permission.MANAGE_LOCAL_ACCOUNTS 或 ohos.permission.DISTRIBUTED_DATASYNC。
- 返回值:
| 类型 | 说明 |
diff --git a/zh-cn/application-dev/reference/apis/js-apis-osAccount.md b/zh-cn/application-dev/reference/apis/js-apis-osAccount.md
index 9582d405e98c3e59c78cc3da3feb1dcdcdd54751..dbd92d9a712c3531b011231faa29d666907cc419 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-osAccount.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-osAccount.md
@@ -2017,6 +2017,8 @@ queryOsAccountConstraintSourceTypes(localId: number, constraint: string): Promis
约束来源类型信息。
+此接口为系统接口。
+
**系统能力:** 以下各项对应的系统能力均为SystemCapability.Account.OsAccount。
| 参数名 | 类型 | 必填 | 说明 |
@@ -2028,6 +2030,8 @@ queryOsAccountConstraintSourceTypes(localId: number, constraint: string): Promis
枚举,约束来源类型。
+此接口为系统接口。
+
**系统能力:** 以下各项对应的系统能力均为SystemCapability.Account.OsAccount。
| 参数 | 默认值 | 说明 |