update:成功vk登陆

This commit is contained in:
2026-01-28 16:12:19 +08:00
parent 13b931eb8e
commit 29bac5b580
7 changed files with 241 additions and 16 deletions

View File

@@ -38,7 +38,9 @@ namespace tysdk
{"google", EAccoutType.hwGoogle},
{"fb", EAccoutType.hwFacebook},
{"tyGuest", EAccoutType.hwGuest},
{"ios13", EAccoutType.Apple}
{"ios13", EAccoutType.Apple},
{"vk.global.app",EAccoutType.hwVkid},
};
private static EAccoutType ConvertAccoutType(string accountType)

View File

@@ -9,10 +9,15 @@ namespace tysdk
hwGoogle,
hwFacebook,
hwGuest,
hwRustore,
hwVkid,
Apple,
none
}
public static class AccountInfo
{
public static string hwVkid = "vk.global.app";
}
public class LoginInfo
{

View File

@@ -107,9 +107,19 @@ namespace tysdk
public static void UnityLogin(EAccoutType accoutType)
{
using(var sdkManager = new AndroidJavaClass(SDK_CLASS))
if (accoutType == EAccoutType.hwVkid)
{
sdkManager.CallStatic("UnityLogin", accoutType.ToString());
using(var sdkManager = new AndroidJavaClass(SDK_CLASS))
{
sdkManager.CallStatic("UnityLogin",AccountInfo.hwVkid);
}
}
else
{
using(var sdkManager = new AndroidJavaClass(SDK_CLASS))
{
sdkManager.CallStatic("UnityLogin", accoutType.ToString());
}
}
}