update:更新SDK 修改
This commit is contained in:
@@ -76,6 +76,10 @@ public class SDKManager {
|
||||
String getPendingPurchases();
|
||||
}
|
||||
|
||||
public interface IBillingLifecycleAdapter {
|
||||
void refreshBilling();
|
||||
}
|
||||
|
||||
private static IChannelSDKAdapter sdkAdapter;
|
||||
|
||||
public static void queryProductsByIDs(String productIds) {
|
||||
@@ -100,9 +104,16 @@ public class SDKManager {
|
||||
return "[]";
|
||||
}
|
||||
|
||||
public static void RefreshBillingService() {
|
||||
Log.i(TAG, "RefreshBillingService");
|
||||
if (sdkAdapter instanceof IBillingLifecycleAdapter) {
|
||||
((IBillingLifecycleAdapter) sdkAdapter).refreshBilling();
|
||||
}
|
||||
}
|
||||
|
||||
public static void CancelBillingFlow() {
|
||||
Log.w(TAG, "CancelBillingFlow");
|
||||
// FlexionSDKService.cancelPurchase();
|
||||
// FlexionSDKAdapter.cancelPurchase();
|
||||
}
|
||||
|
||||
// -------------------------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user