package com.tencent.mm.plugin.freewifi.ui;

import android.content.Intent;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ai.f;
import com.tencent.mm.ai.m;
import com.tencent.mm.plugin.freewifi.model.d;
import com.tencent.mm.plugin.freewifi.ui.ProtocolThreeThreeUI.8;
import com.tencent.mm.protocal.protobuf.gj;
import com.tencent.mm.sdk.platformtools.ab;

class ProtocolThreeThreeUI$8$1 implements f {
    final /* synthetic */ 8 mAC;

    ProtocolThreeThreeUI$8$1(8 8) {
        this.mAC = 8;
    }

    public final void onSceneEnd(int i, int i2, String str, m mVar) {
        AppMethodBeat.i(21157);
        ab.i("MicroMsg.FreeWifi.Protocol33UI", "sessionKey=%s, step=%d, method=FreeWifiConnector.getA8Key.callback, desc=net request [apauth.getBackPageFor33] returns. errType=%d, errCode=%d, errMsg=%s", new Object[]{com.tencent.mm.plugin.freewifi.m.V(this.mAC.mAA.getIntent()), Integer.valueOf(com.tencent.mm.plugin.freewifi.m.W(this.mAC.mAA.getIntent())), Integer.valueOf(i), Integer.valueOf(i2), str});
        if (i == 0 && i2 == 0) {
            gj bzj = ((com.tencent.mm.plugin.freewifi.d.f) mVar).bzj();
            if (bzj != null) {
                ab.i("MicroMsg.FreeWifi.Protocol33UI", "backPageInfo appid: %s, nickName: %s, userName: %s, finishActionCode: %d, finishUrl: %s, signature: %s", new Object[]{bzj.vEn, bzj.jCH, bzj.jBB, Integer.valueOf(bzj.vID), bzj.vIE, bzj.guQ});
                this.mAC.mAA.mwH = bzj.jCH;
                this.mAC.mAA.cBb = bzj.jBB;
                this.mAC.mAA.mzZ = bzj.vID;
                this.mAC.mAA.mAa = bzj.vIE;
                this.mAC.mAA.signature = bzj.guQ;
                this.mAC.mAA.mAb = bzj.vIF;
                ab.i("MicroMsg.FreeWifi.Protocol33UI", "sessionKey=%s, step=%d, method=FreeWifiConnector.getBackPageInfoAfterConnectSuccess, desc=net request [apauth.getBackPageFor33] gets response. backpageinfo:  appid: %s, appNickName: %s, appUserName: %s, finishActionCode: %s, finishUrl: %s, signature: %s, qingHuaiPageUrl: %s", new Object[]{com.tencent.mm.plugin.freewifi.m.V(this.mAC.mAA.getIntent()), Integer.valueOf(com.tencent.mm.plugin.freewifi.m.W(this.mAC.mAA.getIntent())), this.mAC.mAA.appId, this.mAC.mAA.mwH, this.mAC.mAA.cBb, Integer.valueOf(this.mAC.mAA.mzZ), this.mAC.mAA.mAa, this.mAC.mAA.signature, this.mAC.mAA.mAb});
            }
            d.a(this.mAC.mAA.ssid, 2, this.mAC.mAA.getIntent());
            ab.i("MicroMsg.FreeWifi.Protocol33UI", "sessionKey=%s, step=%d, method=Protocol33UI.initModel, desc=it changes the connect state of the model to CONNECT_STATE_CONNECT_SUCCESS. state=%d", new Object[]{com.tencent.mm.plugin.freewifi.m.V(this.mAC.mAA.getIntent()), Integer.valueOf(com.tencent.mm.plugin.freewifi.m.W(this.mAC.mAA.getIntent())), Integer.valueOf(2)});
            AppMethodBeat.o(21157);
        } else if (i2 == -30032) {
            Intent intent = new Intent();
            intent.putExtra("free_wifi_error_ui_error_msg", this.mAC.mAA.getString(2131300043));
            intent.setClass(this.mAC.mAA, FreeWifiErrorUI.class);
            this.mAC.mAA.finish();
            this.mAC.mAA.startActivity(intent);
            AppMethodBeat.o(21157);
        } else {
            d.a(this.mAC.mAA.ssid, 3, this.mAC.mAA.getIntent());
            ab.i("MicroMsg.FreeWifi.Protocol33UI", "sessionKey=%s, step=%d, desc=NetSceneGetBackPageFor33 returns unkown errcode. errCode=%d", new Object[]{com.tencent.mm.plugin.freewifi.m.V(this.mAC.mAA.getIntent()), Integer.valueOf(com.tencent.mm.plugin.freewifi.m.W(this.mAC.mAA.getIntent())), Integer.valueOf(i2)});
            AppMethodBeat.o(21157);
        }
    }
}
