package com.tencent.mm.plugin.card.ui.v2;

import a.l;
import a.y;
import android.content.Context;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.protocal.protobuf.btd;
import com.tencent.mm.protocal.protobuf.ws;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.vending.c.a;
import com.tencent.ytcommon.BuildConfig;

@l(dWo = {1, 1, 13}, dWp = {"\u0000\u0014\n\u0000\n\u0002\u0010\u0000\n\u0002\b\u0002\n\u0002\u0018\u0002\n\u0002\u0018\u0002\n\u0000\u0010\u0000\u001a\n \u0002*\u0004\u0018\u00010\u00010\u00012*\u0010\u0003\u001a&\u0012\f\u0012\n \u0002*\u0004\u0018\u00010\u00050\u0005 \u0002*\u0012\u0012\f\u0012\n \u0002*\u0004\u0018\u00010\u00050\u0005\u0018\u00010\u00040\u0004H\n¢\u0006\u0002\b\u0006"}, dWq = {"<anonymous>", "", "kotlin.jvm.PlatformType", "it", "Lcom/tencent/mm/modelbase/Cgi$CgiBack;", "Lcom/tencent/mm/protocal/protobuf/DeleteMchInListResponse;", "call"})
final class CardHomePageNewUI$g<_Ret, _Var> implements a<_Ret, _Var> {
    final /* synthetic */ CardHomePageNewUI koY;
    final /* synthetic */ String kpy;

    CardHomePageNewUI$g(CardHomePageNewUI cardHomePageNewUI, String str) {
        this.koY = cardHomePageNewUI;
        this.kpy = str;
    }

    public final /* synthetic */ Object call(Object obj) {
        AppMethodBeat.i(89214);
        com.tencent.mm.ai.a.a aVar = (com.tencent.mm.ai.a.a) obj;
        ab.i("MicroMsg.CardHomePageNewUI", "errtype: %s, errcode: %s", new Object[]{Integer.valueOf(aVar.errType), Integer.valueOf(aVar.errCode)});
        if (aVar.errType == 0 && aVar.errCode == 0) {
            btd btd = aVar.fsy;
            ws wsVar = (ws) btd;
            ab.i("MicroMsg.CardHomePageNewUI", "retCode: %s", new Object[]{Integer.valueOf(wsVar.kdT)});
            if (wsVar.kdT == 0) {
                CardHomePageNewUI.o(this.koY).GW(this.kpy);
            } else {
                com.tencent.mm.plugin.card.d.l.ai((Context) this.koY, wsVar.kdU);
            }
            AppMethodBeat.o(89214);
            return btd;
        }
        com.tencent.mm.plugin.card.d.l.aj((Context) this.koY, BuildConfig.FLAVOR);
        Object obj2 = y.AUy;
        AppMethodBeat.o(89214);
        return obj2;
    }
}
