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

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.protocal.protobuf.bnp;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.vending.c.a;
import com.tencent.mm.vending.g.b;

class x$2 implements a<Void, com.tencent.mm.ai.a.a<bnp>> {
    final /* synthetic */ b bQV;
    final /* synthetic */ x tfU;

    x$2(x xVar, b bVar) {
        this.tfU = xVar;
        this.bQV = bVar;
    }

    public final /* synthetic */ Object call(Object obj) {
        AppMethodBeat.i(45296);
        com.tencent.mm.ai.a.a aVar = (com.tencent.mm.ai.a.a) obj;
        ab.i("MicroMsg.LqtSaveFetchInteractor", "on qry purchase result finish, cgiBack: %s, errType: %s, errCode: %s", new Object[]{aVar, Integer.valueOf(aVar.errType), Integer.valueOf(aVar.errCode)});
        if (aVar.errType == 0 && aVar.errCode == 0) {
            bnp bnp = (bnp) aVar.fsy;
            ab.i("MicroMsg.LqtSaveFetchInteractor", "on qry purchase result finsih, retcode: %s, retmsg: %s, purchase_state: %s", new Object[]{Integer.valueOf(bnp.kdT), bnp.kdU, Integer.valueOf(bnp.wQn)});
            if (bnp.kdT == 0) {
                ab.ach(bnp.tgu);
                this.bQV.B(new Object[]{bnp});
                h.pYm.a(663, 6, 1, false);
            } else {
                this.bQV.cR(bnp.kdU);
                h.pYm.a(663, 7, 1, false);
            }
        } else {
            this.bQV.cR(Boolean.FALSE);
            h.pYm.a(663, 8, 1, false);
        }
        Void voidR = zXH;
        AppMethodBeat.o(45296);
        return voidR;
    }
}
