package com.tencent.mm.plugin.setting;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ai.e;
import com.tencent.mm.kernel.g;
import com.tencent.mm.model.bz.a;
import com.tencent.mm.platformtools.aa;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;
import com.tencent.mm.sdk.platformtools.br;
import com.tencent.mm.storage.ac;
import com.tencent.mm.x.c;
import com.tencent.ytcommon.BuildConfig;
import java.util.Map;

class c$2 implements a {
    final /* synthetic */ c qjz;

    c$2(c cVar) {
        this.qjz = cVar;
    }

    public final void a(e.a aVar) {
        AppMethodBeat.i(126826);
        String a = aa.a(aVar.eAB.vED);
        if (a == null || a.length() == 0) {
            ab.e("MicroMsg.SubCoreSetting", "onReceiveMsg, ShakeCardRedDotMsg msgContent is null");
            AppMethodBeat.o(126826);
            return;
        }
        Map z = br.z(a, "sysmsg");
        if (z == null) {
            AppMethodBeat.o(126826);
            return;
        }
        String bc = bo.bc((String) z.get(".sysmsg.RedPoints.redPoint.path"), BuildConfig.FLAVOR);
        int ank = bo.ank(bo.bc((String) z.get(".sysmsg.RedPoints.redPoint.redPointId"), BuildConfig.FLAVOR));
        bo.ank(bo.bc((String) z.get(".sysmsg.RedPoints.redPoint.mustClearInSameTime"), BuildConfig.FLAVOR));
        if (bo.isNullOrNil(bc)) {
            AppMethodBeat.o(126826);
        } else if (!bc.equals("my_setting_privaty_recentOption")) {
            if (bc.equals("my_setting_plugin_switch")) {
                String bc2 = bo.bc((String) z.get(".sysmsg.RedPoints.redPoint.ext"), BuildConfig.FLAVOR);
                if (bo.isNullOrNil(bc2)) {
                    AppMethodBeat.o(126826);
                    return;
                } else if (((Integer) g.RP().Ry().get(ac.a.xRI, Integer.valueOf(0))).intValue() >= ank) {
                    AppMethodBeat.o(126826);
                    return;
                } else {
                    Object concat;
                    g.RP().Ry().set(ac.a.xRI, Integer.valueOf(ank));
                    a = (String) g.RP().Ry().get(ac.a.xRJ, BuildConfig.FLAVOR);
                    if (bo.isNullOrNil(a)) {
                        a = bc2;
                    } else {
                        concat = bc2.concat(",").concat(a);
                    }
                    g.RP().Ry().set(ac.a.xRJ, concat);
                    c.PK().y(262158, true);
                }
            }
            AppMethodBeat.o(126826);
        } else if (((Integer) g.RP().Ry().get(ac.a.xQF, Integer.valueOf(0))).intValue() >= ank) {
            AppMethodBeat.o(126826);
        } else {
            g.RP().Ry().set(ac.a.xQF, Integer.valueOf(ank));
            g.RP().Ry().set(ac.a.xQG, Integer.valueOf(ank));
            g.RP().Ry().set(ac.a.xQI, Integer.valueOf(ank));
            g.RP().Ry().set(ac.a.xQK, Integer.valueOf(ank));
            g.RP().Ry().set(ac.a.xQM, Integer.valueOf(ank));
            c.PK().y(266260, true);
            AppMethodBeat.o(126826);
        }
    }
}
