package com.tencent.mm.plugin.webview.ui.tools.jsapi;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.webview.model.d$b;
import com.tencent.mm.plugin.webview.modeltools.g;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;
import java.util.HashMap;

class g$86 implements d$b {
    final /* synthetic */ String ioH;
    final /* synthetic */ g uHd;
    final /* synthetic */ String ukG;
    final /* synthetic */ i uqf;

    g$86(g gVar, String str, String str2, i iVar) {
        this.uHd = gVar;
        this.ioH = str;
        this.ukG = str2;
        this.uqf = iVar;
    }

    public final void b(boolean z, String str, String str2, String str3) {
        AppMethodBeat.i(9150);
        ab.i("MicroMsg.MsgHandler", this.ioH + ", on cdn finish,  is success : %s, mediaId : %s, local id is : %s, mediaUrl : %s", new Object[]{Boolean.valueOf(z), str2, str, str3});
        if (bo.isNullOrNil(str) || !str.equals(this.ukG)) {
            AppMethodBeat.o(9150);
            return;
        }
        g.E(this.uHd).remove(this.ukG);
        g.cYE().a(this);
        if (g.m(this.uHd) != null) {
            g.m(this.uHd).dismiss();
            g.a(this.uHd, null);
        }
        g.F(this.uHd);
        if (z) {
            HashMap hashMap = new HashMap();
            hashMap.put("serverId", str2);
            hashMap.put("mediaUrl", str3);
            g.a(this.uHd, this.uqf, this.ioH + ":ok", hashMap);
            AppMethodBeat.o(9150);
            return;
        }
        g.a(this.uHd, this.uqf, this.ioH + ":fail", null);
        AppMethodBeat.o(9150);
    }
}
