package com.tencent.mm.plugin.wallet.balance;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ai.m;
import com.tencent.mm.plugin.wallet.pay.a.a.b;
import com.tencent.mm.plugin.wallet_core.c.y;
import com.tencent.mm.plugin.wallet_core.model.Authen;
import com.tencent.mm.plugin.wallet_core.model.Orders;
import com.tencent.mm.ui.MMActivity;
import com.tencent.mm.wallet_core.d.g;
import com.tencent.mm.wallet_core.d.i;

class b$3 extends g {
    final /* synthetic */ b teV;

    b$3(b bVar, MMActivity mMActivity, i iVar) {
        this.teV = bVar;
        super(mMActivity, iVar);
    }

    public final boolean c(int i, int i2, String str, m mVar) {
        AppMethodBeat.i(45203);
        if (i == 0 && i2 == 0) {
            if (mVar instanceof b) {
                b bVar = (b) mVar;
                b.m(this.teV).putString("kreq_token", bVar.token);
                if (bVar.tpw) {
                    b.n(this.teV).putParcelable("key_orders", bVar.tog);
                }
            }
            if (this.teV.c(this.hwd, null)) {
                this.Agm.a(new y(b.o(this.teV), 13), true, 1);
                AppMethodBeat.o(45203);
                return true;
            }
            this.teV.a(this.hwd, 0, b.p(this.teV));
            AppMethodBeat.o(45203);
            return true;
        }
        AppMethodBeat.o(45203);
        return false;
    }

    public final boolean p(Object... objArr) {
        AppMethodBeat.i(45204);
        Authen authen = (Authen) objArr[0];
        Orders orders = (Orders) objArr[1];
        switch (b.q(this.teV).getInt("key_pay_flag", 0)) {
            case 1:
                if (!this.teV.cRY()) {
                    authen.bJt = 1;
                    break;
                }
                authen.bJt = 4;
                break;
            case 2:
                if (!this.teV.cRY()) {
                    authen.bJt = 2;
                    break;
                }
                authen.bJt = 5;
                break;
            case 3:
                if (!this.teV.cRY()) {
                    authen.bJt = 3;
                    break;
                }
                authen.bJt = 6;
                break;
            default:
                AppMethodBeat.o(45204);
                return false;
        }
        b.r(this.teV).putParcelable("key_authen", authen);
        this.Agm.a(new b(authen, orders), true, 1);
        AppMethodBeat.o(45204);
        return true;
    }
}
