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

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.jsapi.e;
import com.tencent.mm.plugin.appbrand.jsapi.g.a.b.k;
import com.tencent.mm.plugin.appbrand.jsapi.g.a.b.q;
import com.tencent.mm.plugin.appbrand.jsapi.g.o.a;
import com.tencent.mm.sdk.platformtools.ab;
import org.json.JSONException;
import org.json.JSONObject;

class o$4 implements k {
    final /* synthetic */ int hCN;
    final /* synthetic */ o hMJ;
    final /* synthetic */ e hMK;

    o$4(o oVar, int i, e eVar) {
        this.hMJ = oVar;
        this.hCN = i;
        this.hMK = eVar;
    }

    public final void a(q qVar) {
        AppMethodBeat.i(93855);
        a aVar = new a();
        JSONObject jSONObject = new JSONObject();
        try {
            jSONObject.put("mapId", this.hCN);
            jSONObject.put("data", qVar.data);
        } catch (JSONException e) {
            ab.e("MicroMsg.JsApiInsertMap", "put JSON data error : %s", new Object[]{e});
        }
        aVar.AM(jSONObject.toString());
        this.hMK.b(aVar);
        AppMethodBeat.o(93855);
    }
}
