package com.tencent.mm.plugin.appbrand.appusage.a;

import a.f.a.a;
import a.f.b.k;
import a.l;
import a.y;
import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.plugin.appbrand.ui.recommend.e;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;

@l(dWo = {1, 1, 13}, dWp = {"\u0000\b\n\u0000\n\u0002\u0010\u0002\n\u0000\u0010\u0000\u001a\u00020\u0001H\n¢\u0006\u0002\b\u0002"}, dWq = {"<anonymous>", "", "invoke"})
public final class d$f extends k implements a<y> {
    final /* synthetic */ d hbv;

    public d$f(d dVar) {
        this.hbv = dVar;
        super(0);
    }

    public final /* synthetic */ Object invoke() {
        int i;
        AppMethodBeat.i(134575);
        d dVar = this.hbv;
        if (bo.anT() - dVar.lastUpdateTime > dVar.hbk) {
            i = 1;
        } else {
            i = 0;
        }
        if (i != 0) {
            ab.i("MicroMsg.Recommend.AppBrandRecommendLogic", "data is timeout, need to update from server");
            d.b(this.hbv);
            d.d(this.hbv);
            d.e(this.hbv);
            d.a(this.hbv, d.c(this.hbv));
            e.pX(2);
        } else {
            d.a(this.hbv, d.f(this.hbv), d.a(this.hbv));
            e.pX(1);
        }
        y yVar = y.AUy;
        AppMethodBeat.o(134575);
        return yVar;
    }
}
