Skip to content

Commit

Permalink
Merge pull request #1162 from taptap/feat_change_unity_api
Browse files Browse the repository at this point in the history
feat: 修改 unity_login 对外 API
  • Loading branch information
lc1006 authored Aug 30, 2024
2 parents 784d853 + eca10f1 commit 64d8108
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/sdk/anti-addiction/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ TapTapCompliance.register(self)
```cs
using TapSDK.Compliance;

TapTapAccount account = await TapTapLogin.Instance.GetCurrentAccount();
TapTapAccount account = await TapTapLogin.Instance.GetCurrentTapAccount();
if (account != null) {
string userIdentifier = account.uniontId;
TapTapCompliance.Startup(userIdentifier);
Expand Down
2 changes: 1 addition & 1 deletion docs/sdk/taptap-login/guide.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -485,7 +485,7 @@ TapTap 用户登录成功之后,开发者可以通过如下方式获取到 Tap
using TapSDK.Login;

try {
TapTapAccount account = await TapTapLogin.Instance.GetCurrentAccount();
TapTapAccount account = await TapTapLogin.Instance.GetCurrentTapAccount();
if (account == null) {
// 用户未登录
} else {
Expand Down

0 comments on commit 64d8108

Please sign in to comment.