谷歌敏感权限和新的更新包逻辑
This commit is contained in:
@@ -195,6 +195,24 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
public void onSetupSuccess(boolean isSelf) {
|
||||
super.onSetupSuccess(isSelf);
|
||||
Log.d(TAG, "内购服务初始化完成");
|
||||
// googleBillingUtil.queryPurchaseHistoryAsyncInApp(new PurchaseHistoryResponseListener() {
|
||||
// @Override
|
||||
// public void onPurchaseHistoryResponse(@NonNull BillingResult billingResult, @Nullable List<PurchaseHistoryRecord> list) {
|
||||
// Log.e(TAG,list.get(0).getPurchaseToken());
|
||||
// //谷歌掉单处理
|
||||
//// CommonHttpUtil.Google_sec_pay(purchase.getPurchaseToken(), purchase.getOrderId(), purchase.getSku(), new HttpCallback() {
|
||||
//// @Override
|
||||
//// public void onSuccess(int code, String msg, String[] info) {
|
||||
////
|
||||
//// }
|
||||
//// });
|
||||
//
|
||||
// }
|
||||
// });
|
||||
List<Purchase> data = googleBillingUtil.queryPurchasesInApp(MainActivity.this);
|
||||
if(data!=null&&data.size()>0) {
|
||||
Log.e(TAG, data.get(0).getSku());
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
@@ -284,6 +302,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
.addOnGoogleBillingListener(MainActivity.this, mOnMyGoogleBillingListener)
|
||||
.build(MainActivity.this);
|
||||
|
||||
|
||||
//在请求一下这个接口给我后台版本号
|
||||
CommonHttpUtil.getConfig(mContext, new CommonCallback<ConfigBean>() {
|
||||
@Override
|
||||
@@ -446,7 +465,6 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
showInvitationCode();
|
||||
}
|
||||
|
||||
checkVersion();
|
||||
loginIM();
|
||||
CommonAppConfig.getInstance().setLaunched(true);
|
||||
mFristLoad = true;
|
||||
@@ -542,6 +560,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
});
|
||||
//获取指导员账号
|
||||
ConversationIMListManager.get(this).getUserInstructor(this);
|
||||
checkVersion();
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -570,6 +589,7 @@ public class MainActivity extends AbsActivity implements MainAppBarLayoutListene
|
||||
public void onError(String error) {
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user