[M] upgrade Unity 2022.3.62 and fix link parsing

Upgraded Unity editor to 2022.3.62f2c1 with related package updates. Fixed LinkAccoutResult JSON parsing to properly handle bindInfo as dictionary. Added Android namespace configuration.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-25 18:19:30 +08:00
parent 58a29b0335
commit 638e6a3327
8 changed files with 35 additions and 24 deletions

View File

@@ -5,6 +5,7 @@ using System.Security.Cryptography;
using System.Text;
using System.Threading.Tasks;
using asap.core;
using Newtonsoft.Json;
using Newtonsoft.Json.Linq;
using UnityEngine;
@@ -312,13 +313,18 @@ namespace tysdk
public void LinkAccoutResult(string message)
{
JObject data = new JObject(message);
JObject data = JObject.Parse(message);
var result = new LinkResult()
{
code = data["code"].Value<int>(),
userId = data["userId"].Value<int>()
userId = data["userId"].Value<int>(),
};
if (data.ContainsKey("bindInfo"))
{
result.bindInfo = JsonConvert.DeserializeObject<Dictionary<string, string>>(data.GetValue(@"bindInfo").ToString());
}
TYSDKCallbackManager.Instance.TryTriggerCallback(result);
}
#endif