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 6adc781f2409e7ecad6367f64542eba349747470..7724c86ea73f651548df234412f36e20f3c33cf2 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)); });