update:更新接口的修改
This commit is contained in:
@@ -46,10 +46,12 @@ namespace tysdk
|
||||
|
||||
public static void ConsumePurchase(string token) { }
|
||||
|
||||
public static string GetPendingPurchases() => "[]";
|
||||
public static void QueryPendingPurchases() { }
|
||||
|
||||
public static void RefreshBillingService() { }
|
||||
|
||||
public static bool IsGooglePlayServicesAvailable() { return true; }
|
||||
|
||||
//打点
|
||||
public static void SetGaUserInfo(string userId){}
|
||||
public static void SetGaCommonInfo(string SetGaCommonInfo){}
|
||||
@@ -218,11 +220,11 @@ namespace tysdk
|
||||
}
|
||||
}
|
||||
|
||||
public static string GetPendingPurchases()
|
||||
public static void QueryPendingPurchases()
|
||||
{
|
||||
using(var sdkManager = new AndroidJavaClass(SDK_CLASS))
|
||||
{
|
||||
return sdkManager.CallStatic<string>("GetPendingPurchases");
|
||||
sdkManager.CallStatic("QueryPendingPurchases");
|
||||
}
|
||||
}
|
||||
|
||||
@@ -244,6 +246,14 @@ namespace tysdk
|
||||
}
|
||||
}
|
||||
|
||||
public static bool IsGooglePlayServicesAvailable()
|
||||
{
|
||||
using(var sdkManager = new AndroidJavaClass(SDK_CLASS))
|
||||
{
|
||||
return sdkManager.CallStatic<bool>("IsGooglePlayServicesAvailable");
|
||||
}
|
||||
}
|
||||
|
||||
//打点
|
||||
public static void SetGaUserInfo(string userId)
|
||||
{
|
||||
@@ -479,10 +489,12 @@ namespace tysdk
|
||||
|
||||
public static void ConsumePurchase(string token) { }
|
||||
|
||||
public static string GetPendingPurchases() => "[]";
|
||||
public static void QueryPendingPurchases() { }
|
||||
|
||||
public static void RefreshBillingService() { }
|
||||
|
||||
public static bool IsGooglePlayServicesAvailable() { return true; }
|
||||
|
||||
#endif
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user