package com.ta.a.d; import android.content.Context; import android.text.TextUtils; import com.ta.a.c.b; import com.ta.a.e.f; import com.ta.utdid2.device.a; public class h implements Runnable { private static volatile boolean b; private Context mContext; public h(Context context) { this.mContext = context; } private void a() { com.ta.a.e.h.f(); if (f.e(this.mContext) && !b) { b = true; try { b(); } catch (Throwable unused) { } b = false; } } private void b() { com.ta.a.e.h.f(); String i = i(); if (TextUtils.isEmpty(i)) { com.ta.a.e.h.m93a("postData is empty", new Object[0]); } else if (a(i)) { com.ta.a.e.h.m93a("", "upload success"); } else { com.ta.a.e.h.m93a("", "upload fail"); } } private String i() { String r = a.a().r(); if (TextUtils.isEmpty(r)) { return null; } String a5 = com.ta.a.c.a.a(r); if (com.ta.a.e.h.b()) { com.ta.a.e.h.b("", a5); } return b.b(a5); } public void run() { try { a(); } catch (Throwable th2) { com.ta.a.e.h.a("", th2, new Object[0]); } } private boolean a(String str) { a a5 = b.a("https://mpush-api.aliyun.com/v2.0/a/audid/req/", str, true); if (a5 == null) { return false; } return com.ta.utdid2.device.f.a(a5); } }