package com.tencent.mm.plugin.websearch.b;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.websearch.api.d;
import com.tencent.mm.protocal.protobuf.bvj;
import com.tencent.mm.vending.c.a;
import java.lang.ref.WeakReference;
import org.xwalk.core.Log;

class b$1 implements a<Void, com.tencent.mm.ai.a.a<bvj>> {
    final /* synthetic */ String IP;
    final /* synthetic */ WeakReference ucb;
    final /* synthetic */ b ucc;

    b$1(b bVar, WeakReference weakReference, String str) {
        this.ucc = bVar;
        this.ucb = weakReference;
        this.IP = str;
    }

    public final /* synthetic */ Object call(Object obj) {
        AppMethodBeat.i(91364);
        com.tencent.mm.ai.a.a aVar = (com.tencent.mm.ai.a.a) obj;
        d dVar = (d) this.ucb.get();
        if (dVar != null) {
            if (aVar.errType == 0 && aVar.errCode == 0) {
                dVar.a(true, ((bvj) aVar.fsy).wWx, ((bvj) aVar.fsy).vQg, this.IP);
            } else {
                Log.w("RelevantSearchService", "search local page error " + aVar.aIm);
                dVar.a(false, null, null, null);
            }
        }
        AppMethodBeat.o(91364);
        return null;
    }
}
