com.xd.sdk.account 7.2.1-alpha.3 → 7.2.1-alpha.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -6,4 +6,4 @@
6
6
  //
7
7
  #define XDGAccount_VERSION @"7.3.0"
8
8
  #define XDSAccount_VERSION_CODE @"7030000"
9
- // HASH e0ae45d9
9
+ // HASH 12db4772
@@ -14,7 +14,7 @@ namespace XD.SDK.Account.Internal.Standalone
14
14
 
15
15
  internal static async Task<Dictionary<string, object>> GetAuthData()
16
16
  {
17
- if (SteamWrapper.Initialized())
17
+ if (SteamUtils.IsSDKSupported)
18
18
  {
19
19
  // 先尝试从 Steam SDK 中获取 auth data
20
20
  Dictionary<string, object> authData = await GetAuthDataFromSDK();
@@ -38,7 +38,7 @@ namespace XD.SDK.Account.Internal.Standalone
38
38
  AliyunTrack.LoginAuthorize();
39
39
  try
40
40
  {
41
- string ticket = await SteamWrapper.Instance.GetAuthTicket();
41
+ string ticket = await SteamUtils.Instance.GetAuthTicket();
42
42
  if (string.IsNullOrWhiteSpace(ticket))
43
43
  {
44
44
  // 登陆授权失败
@@ -70,12 +70,12 @@ namespace XD.SDK.Account.Internal.Standalone
70
70
 
71
71
  public static string GetSteamIdFromSDK()
72
72
  {
73
- return SteamWrapper.Instance.GetSteamId();
73
+ return SteamUtils.Instance.GetSteamId();
74
74
  }
75
75
 
76
76
  public static Dictionary<string, object> GetCacheData()
77
77
  {
78
- if (!SteamWrapper.Initialized())
78
+ if (!SteamUtils.IsSDKSupported)
79
79
  {
80
80
  return null;
81
81
  }
@@ -440,7 +440,7 @@ namespace XD.SDK.Account.Internal.Standalone
440
440
  content["user_login_type"] = string.IsNullOrEmpty(current) ? "" : userLoginTypeString;
441
441
  content["logid"] = CommonTrack.GetLogId(LoginEventSessionId, eventName);
442
442
  content["isLoginModule"] = "true";
443
- if (SteamWrapper.Initialized())
443
+ if (SteamUtils.IsSDKSupported)
444
444
  {
445
445
  content["console_type"] = "steam";
446
446
  }
@@ -381,7 +381,7 @@ namespace XD.SDK.Account.Internal.Standalone
381
381
  public static async Task<XDGUser> LoginByConsole()
382
382
  {
383
383
  // 判断当前有接入哪个主机 SDK
384
- if (SteamWrapper.Initialized())
384
+ if (SteamUtils.IsSDKSupported)
385
385
  {
386
386
  try
387
387
  {
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "com.xd.sdk.account",
3
3
  "displayName": "XDGSDK Account",
4
- "version": "7.2.1-alpha.3",
4
+ "version": "7.2.1-alpha.4",
5
5
  "description": "XDGSDK",
6
6
  "unity": "2019.3",
7
7
  "license": "MIT",
8
8
  "dependencies": {
9
- "com.xd.sdk.common": "7.2.1-alpha.3"
9
+ "com.xd.sdk.common": "7.2.1-alpha.4"
10
10
  }
11
11
  }