[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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user