From e7e48fe5218cf6ace4d05d1eda5d7c03bd78dfb9 Mon Sep 17 00:00:00 2001 From: wuqi0105 Date: Thu, 2 Mar 2023 10:13:29 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0js=E5=87=AD=E6=8D=AE=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=8E=A5=E5=8F=A3=E6=96=87=E6=A1=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: wuqi0105 --- .../reference/apis/js-apis-device-manager.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/zh-cn/application-dev/reference/apis/js-apis-device-manager.md b/zh-cn/application-dev/reference/apis/js-apis-device-manager.md index 92218d2fe5..bbae7123ca 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-device-manager.md +++ b/zh-cn/application-dev/reference/apis/js-apis-device-manager.md @@ -899,15 +899,15 @@ requestCredential(requestInfo: string, callback: AsyncCallback<{registerInfo: st "userId" : "123" } try { - dmClass.requestCredential(credentialInfo, (data) => { + dmClass.requestCredentialRegisterInfo(credentialInfo, (data) => { if (data) { - console.info("requestCredential result:" + JSON.stringify(data)); + console.info("requestCredentialRegisterInfo result:" + JSON.stringify(data)); } else { - console.info.push("requestCredential result: data is null"); + console.info.push("requestCredentialRegisterInfo result: data is null"); } }); } catch (err) { - console.error("requestCredential err:" + err.code + "," + err.message); + console.error("requestCredentialRegisterInfo err:" + err.code + "," + err.message); } ``` -- GitLab