From 58f54774f2d6fa7c0da9a1edd95919f40f51ef14 Mon Sep 17 00:00:00 2001 From: cclicn Date: Mon, 10 Apr 2023 16:16:34 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E5=BA=94=E7=94=A8=E5=B8=90=E5=8F=B7?= =?UTF-8?q?=E3=80=91api9=E6=8E=A5=E5=8F=A3=E7=A4=BA=E4=BE=8B=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E6=95=B4=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: cclicn --- zh-cn/application-dev/reference/apis/js-apis-appAccount.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 6adc781f24..7724c86ea7 100644 --- a/zh-cn/application-dev/reference/apis/js-apis-appAccount.md +++ b/zh-cn/application-dev/reference/apis/js-apis-appAccount.md @@ -2092,7 +2092,7 @@ getAuthCallback(sessionId: string, callback: AsyncCallback<AuthCallback>): var sessionId = want.parameters[account_appAccount.Constants.KEY_SESSION_ID]; try { appAccountManager.getAuthCallback(sessionId, (err, callback) => { - if (err.code != account_appAccount.ResultCode.SUCCESS) { + if (err != null) { console.log("getAuthCallback err: " + JSON.stringify(err)); return; } @@ -2106,7 +2106,7 @@ getAuthCallback(sessionId: string, callback: AsyncCallback<AuthCallback>): authType: "getSocialData" } }; - callback.onResult(account_appAccount.ResultCode.SUCCESS, result); + callback.onResult(0, result); }); } catch (err) { console.log("getAuthCallback exception: " + JSON.stringify(err)); @@ -2163,7 +2163,7 @@ getAuthCallback(sessionId: string): Promise<AuthCallback> authType: "getSocialData" } }; - callback.onResult(account_appAccount.ResultCode.SUCCESS, result); + callback.onResult(0, result); }).catch((err) => { console.log("getAuthCallback err: " + JSON.stringify(err)); }); -- GitLab