update:合并代码

This commit is contained in:
2026-02-10 19:30:48 +08:00
parent a6db6d438c
commit 62046f4bdc
2 changed files with 19 additions and 23 deletions

View File

@@ -142,20 +142,15 @@ namespace tysdk
public static void LinkAccount(EAccoutType accoutType)
{
string userId = TYSdkFacade.TYAccountInfo.strUserId;
using(var sdkManager = new AndroidJavaClass(SDK_CLASS))
if (accoutType == EAccoutType.hwVkid)
{
using(var sdkManager = new AndroidJavaClass(SDK_CLASS))
{
sdkManager.CallStatic("LinkAccount",AccountInfo.hwVkid);
}
sdkManager.CallStatic("LinkAccount",AccountInfo.hwVkid,userId);
}
else
{
using(var sdkManager = new AndroidJavaClass(SDK_CLASS))
{
string userId = TYSdkFacade.TYAccountInfo.strUserId;
sdkManager.CallStatic("LinkAccount", accoutType.ToString(), userId);
}
{
sdkManager.CallStatic("LinkAccount", accoutType.ToString(), userId);
}
}