package com.tencent.mm.plugin.appbrand.ui.autofill;

import android.widget.Toast;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ai.b;
import com.tencent.mm.ipcinvoker.wx_extension.b$a;
import com.tencent.mm.plugin.appbrand.ui.autofill.AppBrandIDCardUI.1;
import com.tencent.mm.protocal.protobuf.bwu;
import com.tencent.mm.sdk.platformtools.ab;

class AppBrandIDCardUI$1$5 implements b$a {
    final /* synthetic */ 1 iKk;

    AppBrandIDCardUI$1$5(1 1) {
        this.iKk = 1;
    }

    public final void a(int i, int i2, String str, b bVar) {
        AppMethodBeat.i(133219);
        if (i == 0 && i2 == 0 && bVar.fsH.fsP != null) {
            bwu bwu = (bwu) bVar.fsH.fsP;
            if (bwu.wXh != null) {
                ab.i("MicroMsg.AppBrandIDCardUI", "SendSmsResp.auth_base_response.err_code:%d", new Object[]{Integer.valueOf(bwu.wXh.cCJ)});
                if (bwu.wXh.cCJ == 0) {
                    this.iKk.iKj.iKi = bwu.wXi;
                    ab.i("MicroMsg.AppBrandIDCardUI", "send success, verifyToken:%s", new Object[]{bwu.wXi});
                    AppMethodBeat.o(133219);
                    return;
                }
                1.a(this.iKk, this.iKk.iKj.getString(2131296666));
                AppMethodBeat.o(133219);
                return;
            }
            ab.i("MicroMsg.AppBrandIDCardUI", "SendSmsResp.auth_base_response is null");
            1.a(this.iKk, this.iKk.iKj.getString(2131296666));
            AppMethodBeat.o(133219);
            return;
        }
        ab.e("MicroMsg.AppBrandIDCardUI", "sendSms cgi failed, errType = %d, errCode = %d, errMsg = %s, rr.resp = %s", new Object[]{Integer.valueOf(i), Integer.valueOf(i2), str, bVar.fsH.fsP});
        Toast.makeText(this.iKk.iKj, this.iKk.iKj.getString(2131296660), 0).show();
        AppMethodBeat.o(133219);
    }
}
