package com.tencent.mm.plugin.appbrand.jsapi.bio.face;

import android.content.Intent;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.jsapi.c;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.ui.MMActivity.a;

class d$1 implements a {
    final /* synthetic */ int eIl;
    final /* synthetic */ d hDa;
    final /* synthetic */ c hxc;

    d$1(d dVar, c cVar, int i) {
        this.hDa = dVar;
        this.hxc = cVar;
        this.eIl = i;
    }

    public final void c(int i, int i2, Intent intent) {
        AppMethodBeat.i(3202);
        ab.i("MicroMsg.JsApiStartFaceAction", "carson: start mmOnActivityResult（） ");
        int intExtra = intent.getIntExtra("err_code", 0);
        int intExtra2 = intent.getIntExtra("scene", 0);
        int intExtra3 = intent.getIntExtra("countFace", 0);
        long longExtra = intent.getLongExtra("totalTime", 0);
        int intExtra4 = intent.getIntExtra("err_type", 6);
        ab.i("MicroMsg.JsApiStartFaceAction", "errCode： ".concat(String.valueOf(intExtra)));
        ab.i("MicroMsg.JsApiStartFaceAction", "scene： ".concat(String.valueOf(intExtra2)));
        ab.i("MicroMsg.JsApiStartFaceAction", "countFace： ".concat(String.valueOf(intExtra3)));
        ab.i("MicroMsg.JsApiStartFaceAction", "totalTime： ".concat(String.valueOf(longExtra)));
        ab.i("MicroMsg.JsApiStartFaceAction", "errorType： ".concat(String.valueOf(intExtra4)));
        if (i == 63) {
            ab.i("MicroMsg.JsApiStartFaceAction", "REQUEST_FACE_VERIFY_FOR_PAY resultCode: %d", new Object[]{Integer.valueOf(i2)});
            if (i2 == -1) {
                h.pYm.e(15711, new Object[]{Integer.valueOf(intExtra2), Integer.valueOf(0), Integer.valueOf(intExtra3), Long.valueOf(longExtra), Integer.valueOf(3), Integer.valueOf(0), Integer.valueOf(intExtra)});
                d.a(this.hDa, this.hxc, this.eIl, intent != null ? intent.getExtras() : null, "ok");
                AppMethodBeat.o(3202);
                return;
            } else if (i2 == 1) {
                h.pYm.e(15711, new Object[]{Integer.valueOf(intExtra2), Integer.valueOf(3), Integer.valueOf(intExtra3), Long.valueOf(longExtra), Integer.valueOf(3), Integer.valueOf(intExtra4), Integer.valueOf(intExtra)});
                d.a(this.hDa, this.hxc, this.eIl, intent != null ? intent.getExtras() : null, "fail");
                AppMethodBeat.o(3202);
                return;
            } else if (i2 == 0) {
                h.pYm.e(15711, new Object[]{Integer.valueOf(intExtra2), Integer.valueOf(2), Integer.valueOf(intExtra3), Long.valueOf(longExtra), Integer.valueOf(3), Integer.valueOf(1), Integer.valueOf(intExtra)});
                d.a(this.hDa, this.hxc, this.eIl, intent != null ? intent.getExtras() : null, "cancel");
            }
        }
        AppMethodBeat.o(3202);
    }
}
