package com.tencent.mm.plugin.appbrand.jsapi.auth;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.ipc.AppBrandMainProcessService;
import com.tencent.mm.plugin.appbrand.jsapi.auth.JsApiLogin.LoginTask.2;
import com.tencent.mm.plugin.appbrand.widget.b.c.a;
import com.tencent.mm.sdk.platformtools.ab;
import java.util.ArrayList;

class JsApiLogin$LoginTask$2$1 implements a {
    final /* synthetic */ 2 hCm;

    JsApiLogin$LoginTask$2$1(2 2) {
        this.hCm = 2;
    }

    public final void b(int i, ArrayList<String> arrayList) {
        AppMethodBeat.i(130857);
        ab.i("MicroMsg.JsApiLogin", "stev onRevMsg resultCode %d", new Object[]{Integer.valueOf(i)});
        switch (i) {
            case 1:
            case 2:
                this.hCm.hCl.hBU = "loginConfirm";
                this.hCm.hCl.hBT = arrayList;
                this.hCm.hCl.hBW = i;
                AppBrandMainProcessService.a(this.hCm.hCl);
                if (i == 2) {
                    this.hCm.hCl.hBQ.b(this.hCm.hCl.hBR, this.hCm.hCl.hwi, "fail auth deny");
                    this.hCm.hCl.hBS.aCB();
                    AppMethodBeat.o(130857);
                    return;
                }
                break;
            default:
                ab.d("MicroMsg.JsApiLogin", "press back button!");
                this.hCm.hCl.hBQ.b(this.hCm.hCl.hBR, this.hCm.hCl.hwi, "fail auth cancel");
                this.hCm.hCl.hBS.aCB();
                break;
        }
        AppMethodBeat.o(130857);
    }
}
