From fa38078bdc4a65dd37c63ccd23def346c10bbe65 Mon Sep 17 00:00:00 2001
From: wujie <1255071198@qq.com>
Date: Tue, 29 Aug 2023 20:46:07 +0800
Subject: [PATCH] docs:Consistency between docs and dts documents
Signed-off-by: wujie <1255071198@qq.com>
---
.../reference/apis/js-apis-cardEmulation.md | 8 +++----
.../reference/apis/js-apis-secureElement.md | 24 +++++++++----------
2 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md b/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md
index ef778465d2..80b79fc143 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-cardEmulation.md
@@ -223,7 +223,7 @@ sendResponse(responseApdu: number[]): void;
### transmit9+
-transmit(response: number[]): Promise;
+transmit(response: number[]): Promise\;
发送APDU数据到对端读卡设备。暂不支持使用,仅做接口声明。
@@ -241,7 +241,7 @@ transmit(response: number[]): Promise;
| **类型** | **说明** |
| ------- | -------------------------------------- |
-| Promise | 表示异步回调完成。 |
+| Promise\ | 表示异步回调完成。 |
**错误码:**
@@ -253,7 +253,7 @@ transmit(response: number[]): Promise;
### transmit9+
-transmit(response: number[], callback: AsyncCallback): void;
+transmit(response: number[], callback: AsyncCallback\): void;
发送APDU数据到对端读卡设备。暂不支持使用,仅做接口声明。
@@ -266,7 +266,7 @@ transmit(response: number[], callback: AsyncCallback): void;
| 参数名 | 类型 | 必填 | 说明 |
| ------- | -------- | ---- | ----------------------- |
| responseApdu | number[] | 是 | 发送到对端读卡设备的符合APDU协议的数据,每个number十六进制表示,范围是0x00~0xFF。 |
-| callback | AsyncCallback | 是 | 回调函数void |
+| callback | AsyncCallback\ | 是 | 回调函数void |
**错误码:**
diff --git a/zh-cn/application-dev/reference/apis/js-apis-secureElement.md b/zh-cn/application-dev/reference/apis/js-apis-secureElement.md
index de344fdcbc..6514f75a3a 100644
--- a/zh-cn/application-dev/reference/apis/js-apis-secureElement.md
+++ b/zh-cn/application-dev/reference/apis/js-apis-secureElement.md
@@ -570,7 +570,7 @@ openBasicChannel(aid: number[]): Promise\
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
-| 3300101 | IllegalStateError, service state exception. |
+| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
@@ -619,7 +619,7 @@ try {
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
-| 3300101 | IllegalStateError, service state exception. |
+| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
@@ -675,7 +675,7 @@ openBasicChannel(aid: number[], p2: number): Promise\
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
-| 3300101 | IllegalStateError, service state exception. |
+| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
@@ -726,7 +726,7 @@ openBasicChannel(aid: number[], p2:number, callback: AsyncCallback\): v
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
-| 3300101 | IllegalStateError, service state exception. |
+| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
@@ -782,7 +782,7 @@ openLogicalChannel(aid: number[]): Promise\
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
-| 3300101 | IllegalStateError, service state exception. |
+| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
@@ -831,7 +831,7 @@ try {
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
-| 3300101 | IllegalStateError, service state exception. |
+| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
@@ -887,7 +887,7 @@ P2通常为0x00。设备应允许P2的任何值,并且应允许以下值: 0x
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
-| 3300101 | IllegalStateError, service state exception. |
+| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
@@ -947,7 +947,7 @@ P2通常为0x00。设备应允许P2的任何值,并且应允许以下值: 0x
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
-| 3300101 | IllegalStateError, service state exception. |
+| 3300101 | IllegalStateError, an attempt is made to use an SE session that has been closed. |
| 3300102 | NoSuchElementError, the AID on the SE is not available or cannot be selected. |
| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
@@ -1176,8 +1176,8 @@ transmit(command: number[]): Promise
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
-| 3300101 | IllegalStateError, service state exception. |
-| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
+| 3300101 | IllegalStateError, an attempt is made to use an SE session or channel that has been closed. |
+| 3300103 | SecurityError, the command is filtered by the security policy. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
**示例:**
@@ -1228,8 +1228,8 @@ transmit(command: number[], callback: AsyncCallback): void
| 错误码ID | 错误信息 |
| -------- | -------------------------------- |
-| 3300101 | IllegalStateError, service state exception. |
-| 3300103 | SecurityError, the calling application cannot be granted access to this AID or the default applet on this session. |
+| 3300101 | IllegalStateError, an attempt is made to use an SE session or channel that has been closed. |
+| 3300103 | SecurityError, the command is filtered by the security policy. |
| 3300104 | IOError, there is a communication problem to the reader or the SE. |
**示例:**
--
GitLab