错误修改

This commit is contained in:
LYP
2024-08-09 11:52:53 +08:00
parent 8706239fbd
commit c5f9a0e84b
2 changed files with 3 additions and 3 deletions

View File

@@ -119,11 +119,11 @@ public class SDKTest : MonoBehaviour
ProductListInfo result = await TYSdkFacade.Instance.GetSKUList(); ProductListInfo result = await TYSdkFacade.Instance.GetSKUList();
if (result.code == 0) if (result.code == 0)
{ {
Debug.LogError("products count:::" + result.products.Count); _messageTxt.text = "products count:::" + result.products.Count;
} }
else else
{ {
Debug.LogError("get products fail ,code:" + result.code); _messageTxt.text = "get products fail ,code:" + result.code;
} }
} }

View File

@@ -108,7 +108,7 @@ namespace tysdk
{ {
taskSource.SetResult((ProductListInfo) callback); taskSource.SetResult((ProductListInfo) callback);
}); });
UnityBridgeFunc.ThirdExtend(); UnityBridgeFunc.GetSKUList();
var result = await taskSource.Task; var result = await taskSource.Task;
return result; return result;
#elif UNITY_IOS #elif UNITY_IOS