package com.tencent.mm.ah;

import com.tencent.matrix.trace.core.AppMethodBeat;
import com.tencent.mm.sdk.platformtools.ab;
import com.tencent.mm.sdk.platformtools.bo;

class c$1 implements Runnable {
    final /* synthetic */ String eiH;
    final /* synthetic */ c frl;

    c$1(c cVar, String str) {
        this.frl = cVar;
        this.eiH = str;
    }

    public final void run() {
        AppMethodBeat.i(77850);
        if (bo.isNullOrNil(this.eiH)) {
            AppMethodBeat.o(77850);
        } else if (this.eiH.equals(this.frl.fri)) {
            AppMethodBeat.o(77850);
        } else {
            i ace = c.ace();
            if (ace == null) {
                AppMethodBeat.o(77850);
                return;
            }
            h qo = ace.qo(this.eiH);
            if (qo == null || !qo.getUsername().equals(this.eiH)) {
                AppMethodBeat.o(77850);
                return;
            }
            int i;
            if (bo.anT() - (((long) qo.frY) * 60) > 86400) {
                i = 1;
            } else {
                i = 0;
            }
            if (i == 0) {
                AppMethodBeat.o(77850);
            } else if (bo.isNullOrNil(qo.acl())) {
                ab.w("MicroMsg.AvatarService", "dkhurl user has no url [%s]", new Object[]{this.eiH});
                AppMethodBeat.o(77850);
            } else if (c.acd() == null) {
                AppMethodBeat.o(77850);
            } else {
                d.E(this.eiH, false);
                d.E(this.eiH, true);
                this.frl.pZ(this.eiH);
                AppMethodBeat.o(77850);
            }
        }
    }

    public final String toString() {
        AppMethodBeat.i(77851);
        String str = super.toString() + "|checkAvatarExpire";
        AppMethodBeat.o(77851);
        return str;
    }
}
