From 53eda9649e07722679992ba453064c387240955d Mon Sep 17 00:00:00 2001 From: jidong Date: Fri, 30 Jun 2023 10:39:23 +0800 Subject: [PATCH] fix description, demo code problem Signed-off-by: jidong Change-Id: I5bde6ed67bb57b6f9a8ec99c332cfd4784c17c66 --- ...ppAccount-authorizationExtensionAbility.md | 2 +- .../reference/apis/js-apis-appAccount.md | 4 +-- .../reference/apis/js-apis-osAccount.md | 4 +-- .../reference/errorcodes/errorcode-account.md | 35 +++++++++++++++---- 4 files changed, 34 insertions(+), 11 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-appAccount-authorizationExtensionAbility.md b/zh-cn/application-dev/reference/apis/js-apis-appAccount-authorizationExtensionAbility.md index ede119f8e3..bb71697648 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-appAccount-authorizationExtensionAbility.md +++ b/zh-cn/application-dev/reference/apis/js-apis-appAccount-authorizationExtensionAbility.md @@ -9,7 +9,7 @@ ## 导入模块 ```ts -import AuthorizationExtensionAbility from '@ohos.account.appAccount.AuthorizationExtensionAbility'; +import AuthorizationExtensionAbility, { AuthorizationRequest, AuthorizationCallback } from '@ohos.account.appAccount.AuthorizationExtensionAbility'; ``` ## AuthorizationRequest 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 31d2b7a8ef..51652fe697 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-appAccount.md +++ b/zh-cn/application-dev/reference/apis/js-apis-appAccount.md @@ -730,7 +730,7 @@ setCredential(name: string, credentialType: string, credential: string,callback: | 错误码ID | 错误信息| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or credentialType or credential. | +| 12300002 | Invalid name, credentialType or credential. | | 12300003 | Account not found. | **示例:** @@ -776,7 +776,7 @@ setCredential(name: string, credentialType: string, credential: string): Promise | 错误码ID | 错误信息| | ------- | -------| | 12300001 | System service exception. | -| 12300002 | Invalid name or credentialType or credential. | +| 12300002 | Invalid name, credentialType or credential. | | 12300003 | Account not found. | **示例:** 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 aa40fd84c2..a060724ea6 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-osAccount.md +++ b/zh-cn/application-dev/reference/apis/js-apis-osAccount.md @@ -4107,7 +4107,7 @@ auth(challenge: Uint8Array, authType: AuthType, authTrustLevel: AuthTrustLevel, | 错误码ID | 错误信息 | | -------- | --------------------- | | 12300001 | System service exception. | -| 12300002 | Invalid challenge or authType or authTrustLevel. | +| 12300002 | Invalid challenge, authType or authTrustLevel. | | 12300101 | Credential is incorrect. | | 12300105 | Unsupported authTrustLevel. | | 12300106 | Unsupported authType. | @@ -4166,7 +4166,7 @@ authUser(userId: number, challenge: Uint8Array, authType: AuthType, authTrustLev | 错误码ID | 错误信息 | | -------- | --------------------- | | 12300001 | System service exception. | -| 12300002 | Invalid userId or challenge or authType or authTrustLevel. | +| 12300002 | Invalid userId, challenge, authType or authTrustLevel. | | 12300101 | Credential is incorrect. | | 12300105 | Unsupported authTrustLevel. | | 12300106 | Unsupported authType. | diff --git a/zh-cn/application-dev/reference/errorcodes/errorcode-account.md b/zh-cn/application-dev/reference/errorcodes/errorcode-account.md index 5ecb53db80..7084a812ea 100644 --- a/zh-cn/application-dev/reference/errorcodes/errorcode-account.md +++ b/zh-cn/application-dev/reference/errorcodes/errorcode-account.md @@ -230,6 +230,27 @@ The event listener has not been registered. 请使用注册的监听器执行解注册操作 +## 12300013 网络异常 + +**错误信息** + +The network exception. + +**可能原因** + +该错误码表示网络异常,可能原因如下: +1. 未连接网络; +2. 联网异常; +3. 应用无联网权限; +4. 未知的网络错误; + +**处理步骤** + +1. 连接网络; +2. 确保网络可以正常联网; +3. 确保应用具有联网权限; +4. 重试相关操作; + ## 12300101 凭据不正确 **错误信息** @@ -241,7 +262,7 @@ The credential is incorrect. 该错误码表示凭据不正确,可能原因如下: 1. 密码输入错误; 2. 生物特征不匹配; -2. 令牌失效; +3. 令牌失效; **处理步骤** @@ -268,7 +289,7 @@ The credential does not exist. **错误信息** -The crdential inputer already exists. +The credential inputer already exists. **可能原因** @@ -283,7 +304,7 @@ PIN码输入器已注册,解注册之前无法重复注册。 **错误信息** -The crdential inputer not found. +The credential inputer not found. **可能原因** @@ -355,16 +376,18 @@ The authentication session does not exist. 请使用已成功打开的会话标识查询会话回调。 -## 12300109 认证被取消 +## 12300109 认证、凭据录入、更新等操作被取消 **错误信息** -The authentication is canceled. +The authentication, enrollment, update operation is canceled. **可能原因** -该错误码表示认证被取消,可能原因如下: +该错误码表示认证、凭据录入、更新等操作被取消,可能原因如下: 认证过程中,用户取消认证操作。 +录入凭据过程中,用户取消录入操作。 +录入凭据过程中,用户取消更新操作。 **处理步骤** -- GitLab