package com.tencent.mm.plugin.fingerprint.b;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.fingerprint.c.a;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.wallet_core.ui.WalletBaseUI;
import com.tencent.soter.a.b.b;
import com.tencent.soter.a.b.c;
import com.tencent.soter.a.b.e;
import org.xwalk.core.XWalkFeature;

class n$1 implements b<c> {
    final /* synthetic */ n mse;

    n$1(n nVar) {
        this.mse = nVar;
    }

    public final /* synthetic */ void a(e eVar) {
        AppMethodBeat.i(41548);
        c cVar = (c) eVar;
        ab.i("MicroMsg.SoterFingerprintOpenDelegate", "alvinluo prepare auth key errCode: %d, errMsg: %s", new Object[]{Integer.valueOf(cVar.errCode), cVar.aIm});
        if (cVar.isSuccess()) {
            ab.i("MicroMsg.SoterFingerprintOpenDelegate", "hy: update pay auth key success");
            if (this.mse.msa == null || this.mse.msa.get() == null) {
                this.mse.aF(-1, "base ui is null");
                AppMethodBeat.o(41548);
                return;
            }
            ((WalletBaseUI) this.mse.msa.get()).a(new a(1), false, false);
            AppMethodBeat.o(41548);
            return;
        }
        com.tencent.mm.plugin.soter.d.a.fH(2, cVar.errCode);
        if (cVar.errCode == 12) {
            ab.e("MicroMsg.SoterFingerprintOpenDelegate", "hy: failed upload: model is null or necessary elements null");
            com.tencent.mm.plugin.soter.d.a.d(4, -1000223, -1, "gen auth key failed: unexpected! generated but cannot get");
        } else if (cVar.errCode == 5) {
            com.tencent.mm.plugin.soter.d.a.d(4, -1000223, -1, "gen auth key failed");
        } else if (cVar.errCode == 10) {
            ab.e("MicroMsg.SoterFingerprintOpenDelegate", "hy: update pay auth key failed. remove");
            com.tencent.soter.a.a.Ri(1);
            com.tencent.mm.plugin.soter.d.a.d(5, 4, cVar.errCode, "upload auth key failed");
        } else if (cVar.errCode == 4 || cVar.errCode == 3) {
            ab.e("MicroMsg.SoterFingerprintOpenDelegate", "hy: gen auth key failed");
            com.tencent.mm.plugin.soter.d.a.d(2, -1000223, -1, "gen ask failed");
        } else if (cVar.errCode == 9) {
            ab.e("MicroMsg.SoterFingerprintOpenDelegate", "alvinluo upload ask failed");
            com.tencent.mm.plugin.soter.d.a.d(3, 4, cVar.errCode, cVar.aIm);
        } else {
            ab.e("MicroMsg.SoterFingerprintOpenDelegate", "alvinluo unknown error when prepare auth key");
            com.tencent.mm.plugin.soter.d.a.d(XWalkFeature.INTERFACE_GEO_LOCATION_PERMISSION, -1000223, cVar.errCode, cVar.aIm);
        }
        this.mse.aF(-1, cVar.aIm);
        AppMethodBeat.o(41548);
    }
}
