package com.tencent.mm.plugin.appbrand.jsapi;

import android.content.Context;
import android.content.Intent;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.bp.d;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.pluginsdk.wallet.f;
import com.tencent.mm.ui.MMActivity.a;

class bd$1 implements a {
    final /* synthetic */ int eIl;
    final /* synthetic */ c hxc;
    final /* synthetic */ Context hym;
    final /* synthetic */ bd hyp;

    bd$1(bd bdVar, Context context, c cVar, int i) {
        this.hyp = bdVar;
        this.hym = context;
        this.hxc = cVar;
        this.eIl = i;
    }

    public final void c(int i, int i2, Intent intent) {
        AppMethodBeat.i(130524);
        if (i != (this.hyp.hashCode() & 65535)) {
            AppMethodBeat.o(130524);
            return;
        }
        if (i2 == -1) {
            new Intent().putExtra("key_account_type", 1);
            d.H(this.hym, "wallet", ".balance.ui.lqt.WalletLqtDetailUI");
            this.hxc.M(this.eIl, this.hyp.j("ok", null));
        } else {
            this.hxc.M(this.eIl, this.hyp.j("fail", null));
            if (!f.dlH()) {
                h.pYm.e(14954, new Object[]{f.dlI(), "JsApiOpenWCPayLQTDetail:fail"});
            }
        }
        if (!f.dlH()) {
            f.dlJ();
        }
        AppMethodBeat.o(130524);
    }
}
