package com.tencent.mm.plugin.offline;

import android.text.TextUtils;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ai.f;
import com.tencent.mm.ai.m;
import com.tencent.mm.plugin.offline.a.d;
import com.tencent.mm.plugin.offline.a.s;
import com.tencent.mm.plugin.offline.c.a;
import com.tencent.mm.plugin.report.service.h;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.sdk.platformtools.br;
import java.util.Map;

class g$1 implements f {
    final /* synthetic */ g oXn;

    g$1(g gVar) {
        this.oXn = gVar;
    }

    public final void onSceneEnd(int i, int i2, String str, m mVar) {
        AppMethodBeat.i(43312);
        if ((mVar instanceof d) && i == 0 && i2 == 0) {
            d dVar = (d) mVar;
            g.access$002(dVar.oXW);
            if (g.access$000() == 0) {
                g.access$002(g.access$100());
            }
            ab.i(g.access$200(), "NetSceneOfflineGetMsg: ackkey: %s, appMsg: %s", new Object[]{dVar.oXX, dVar.oXV});
            if (bo.isNullOrNil(dVar.oXV) || bo.isNullOrNil(dVar.oXX)) {
                ab.i(g.access$200(), "OfflineGetMsgLogic msg is null");
            } else if (g.fy(dVar.oXX, dVar.oXV)) {
                ab.i(g.access$200(), "from cgi");
                if (br.z(dVar.oXV, "sysmsg") == null) {
                    AppMethodBeat.o(43312);
                    return;
                }
                h.pYm.a(135, 71, 1, true);
                k.bXg();
                s bXh = k.bXh();
                String str2 = dVar.oXV;
                ab.i("MicroMsg.WalletOfflineMsgManager", "notifyMsgFromCgi");
                if (!TextUtils.isEmpty(str2)) {
                    Map z = br.z(str2, "sysmsg");
                    int i3;
                    if (z != null) {
                        z.get(".sysmsg.paymsg.ack_key");
                        i3 = bo.getInt((String) z.get(".sysmsg.paymsg.PayMsgType"), -1);
                    } else {
                        i3 = -1;
                    }
                    if (!(!a.bYE() || i3 == 7 || i3 == 10)) {
                        ab.i("MicroMsg.WalletOfflineMsgManager", "process msg from pull");
                        bXh.TW(str2);
                        bXh.TX(str2);
                    }
                }
            }
            ab.i(g.access$200(), "mIntercal=" + g.access$000());
            long access$000 = (long) g.access$000();
            g.a(this.oXn).ae(access$000, access$000);
        }
        AppMethodBeat.o(43312);
    }
}
