提交 0fcf38b8 编写于 作者: C cclicn

【挑单3.2】【应用帐号】api9接口示例代码整改

Signed-off-by: Ncclicn <lichenchen22@huawei.com>
上级 9ae6307f
......@@ -2099,7 +2099,7 @@ getAuthCallback(sessionId: string, callback: AsyncCallback&lt;AuthCallback&gt;):
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;
}
......@@ -2113,7 +2113,7 @@ getAuthCallback(sessionId: string, callback: AsyncCallback&lt;AuthCallback&gt;):
authType: "getSocialData"
}
};
callback.onResult(account_appAccount.ResultCode.SUCCESS, result);
callback.onResult(0, result);
});
} catch (err) {
console.log("getAuthCallback exception: " + JSON.stringify(err));
......@@ -2170,7 +2170,7 @@ getAuthCallback(sessionId: string): Promise&lt;AuthCallback&gt;
authType: "getSocialData"
}
};
callback.onResult(account_appAccount.ResultCode.SUCCESS, result);
callback.onResult(0, result);
}).catch((err) => {
console.log("getAuthCallback err: " + JSON.stringify(err));
});
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册