修复 点击去支付无反应 问题

This commit is contained in:
hch 2024-01-15 17:24:07 +08:00
parent f697e650a8
commit a307e6f864
4 changed files with 14 additions and 7 deletions

View File

@ -11,7 +11,6 @@ import com.samsung.android.sdk.iap.lib.listener.OnPaymentListener;
import com.samsung.android.sdk.iap.lib.vo.ConsumeVo;
import com.samsung.android.sdk.iap.lib.vo.ErrorVo;
import com.samsung.android.sdk.iap.lib.vo.OwnedProductVo;
import com.samsung.android.sdk.iap.lib.vo.PurchaseVo;
import com.yunbao.common.utils.L;
import java.util.ArrayList;
@ -41,9 +40,16 @@ public class SamsungUtil {
public void init() {
iapHelper = IapHelper.getInstance(mContext);
//设置支付模式 OPERATION_MODE_PRODUCTION 正式模式 OPERATION_MODE_TEST 测试模式
iapHelper.setOperationMode(HelperDefine.OperationMode.OPERATION_MODE_TEST);
iapHelper.setOperationMode(HelperDefine.OperationMode.OPERATION_MODE_PRODUCTION);
}
public void dispose() {
if (iapHelper != null) {
iapHelper.dispose();
}
}
/**
* 购买
*

View File

@ -4,14 +4,14 @@ ext {
buildToolsVersion: "29.0.2",
minSdkVersion : 21,
targetSdkVersion : 33,
versionCode : 460,
versionCode : 461,
versionName : "6.6.3"
]
manifestPlaceholders = [
//
// serverHost : "https://napi.yaoulive.com",
serverHost : "https://napi.yaoulive.com",
//
serverHost : " https://ceshi.yaoulive.com",
//serverHost : " https://ceshi.yaoulive.com",
//

View File

@ -357,11 +357,11 @@ public class SystemMessageViewHolder extends AbsViewHolder implements View.OnCli
mRefreshView.setDataHelper(new CommonRefreshView.DataHelper<SystemMessageBean>() {
@Override
public RefreshAdapter<SystemMessageBean> getAdapter() {
if (mAdapter == null && (SystemMessageActivity.type.equals("1"))) {
if (mAdapter == null && (SystemMessageActivity.type.equals("1"))) { //官方通知
mAdapter = new SystemMessageAdapter(mContext);
} else if (mAdapter == null && SystemMessageActivity.type.equals("2")) {
mAdapter = new InteractionMessageAdapter(mContext, SystemMessageViewHolder.this);
} else if (mAdapter == null && SystemMessageActivity.type.equals("4")) {
} else if (mAdapter == null && SystemMessageActivity.type.equals("4")) { //系统消息
mAdapter = new SystemMessageNewAdapter(mContext);
}
return mAdapter;

View File

@ -88,6 +88,7 @@ public class SamsungFragment extends Fragment {
private void initSamsung() {
samsungUtil = new SamsungUtil(getActivity());
samsungUtil.dispose();
samsungUtil.init();
}