update:合并代码
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user