package com.tencent.mm.plugin.mall.ui;

import android.view.View;
import android.view.View.OnClickListener;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.kernel.g;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.plugin.wallet_core.utils.e;
import com.tencent.mm.protocal.protobuf.cgd;
import com.tencent.mm.storage.ac.a;
import com.tencent.ytcommon.BuildConfig;
import org.json.JSONObject;

class MallWalletSectionCellView$2 implements OnClickListener {
    final /* synthetic */ MallWalletSectionCellView onJ;
    final /* synthetic */ cgd onK;
    final /* synthetic */ JSONObject onL;

    MallWalletSectionCellView$2(MallWalletSectionCellView mallWalletSectionCellView, cgd cgd, JSONObject jSONObject) {
        this.onJ = mallWalletSectionCellView;
        this.onK = cgd;
        this.onL = jSONObject;
    }

    public final void onClick(View view) {
        int i;
        AppMethodBeat.i(43250);
        e.a(this.onJ.getContext(), this.onK.vCP);
        MallWalletSectionCellView.a(this.onJ);
        if (!(this.onL == null || this.onK.xfj == null)) {
            this.onL.remove(this.onK.xfj.wpJ);
            this.onL.remove(String.format("%s_expiretime", new Object[]{this.onK.xfj.wpJ}));
            g.RP().Ry().set(a.xUn, this.onL.toString());
        }
        String str = BuildConfig.FLAVOR;
        if (this.onK.vCP.type == 1) {
            str = this.onK.vCP.url;
            i = 1;
        } else if (this.onK.vCP.type == 2) {
            if (this.onK.vCP.wVC != null) {
                str = this.onK.vCP.wVC.username;
            }
            i = 2;
        } else if (this.onK.vCP.type == 4) {
            str = this.onK.vCP.url;
            i = 3;
        } else {
            i = 0;
        }
        h.pYm.e(16502, new Object[]{Integer.valueOf(2), str, Integer.valueOf(i)});
        AppMethodBeat.o(43250);
    }
}
