package com.tencent.mm.pluginsdk.g.a.a;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.ai.e;
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 java.util.Map;

class b$a$2 implements a {
    final /* synthetic */ b.a vef;

    b$a$2(b.a aVar) {
        this.vef = aVar;
    }

    public final void a(e.a aVar) {
        AppMethodBeat.i(79479);
        String a = aa.a(aVar.eAB.vED);
        if (bo.isNullOrNil(a)) {
            ab.w("MicroMsg.ResDownloader.CheckResUpdateHelper", "msg content is null");
            AppMethodBeat.o(79479);
            return;
        }
        ab.d("MicroMsg.CheckResUpdateNewXmlParser", "receive msg: \n".concat(String.valueOf(a)));
        if (!bo.isNullOrNil(a)) {
            Map z = br.z(a, "sysmsg");
            j.z(0, 0);
            String str = "MicroMsg.CheckResUpdateNewXmlParser";
            String str2 = "parsed values.size = %s";
            Object[] objArr = new Object[1];
            objArr[0] = z == null ? "null" : String.valueOf(z.size());
            ab.i(str, str2, objArr);
            if (z == null) {
                j.z(0, 30);
            } else {
                j.z(0, 31);
            }
            if (z != null && z.size() > 0 && bo.nullAsNil((String) z.get(".sysmsg.$type")).equalsIgnoreCase("resourcemgr")) {
                e.k(".sysmsg", "delete", z);
                e.k(".sysmsg", "cache", z);
                e.k(".sysmsg", "decrypt", z);
            }
        }
        AppMethodBeat.o(79479);
    }
}
