package com.shizhuang.cloudpix; import android.text.TextUtils; import com.meituan.robust.ChangeQuickRedirect; import com.meituan.robust.PatchProxy; import com.meituan.robust.PatchProxyResult; import com.tencent.mmkv.MMKV; import java.security.MessageDigest; import java.util.ArrayList; import java.util.Iterator; import java.util.List; import java.util.concurrent.atomic.AtomicInteger; public class I11I11lll1I1 { public static long I11I11lll1I1; public static long II1IlIlllI; public static final AtomicInteger III1IIll11lI = new AtomicInteger(0); public static long Il11IIl1lll = 0; public static String Il1l1IIIII = "https://app.dewu.com"; public static String Ill11llllIl11 = ""; public static ChangeQuickRedirect changeQuickRedirect; public static long l111111l1III; public static final List<String> ll1lIll1II11 = new ArrayList(); public static int Il11IIl1lll() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], null, changeQuickRedirect, true, 6, new Class[0], Integer.TYPE); if (proxy.isSupported) { return ((Integer) proxy.result).intValue(); } MMKV mmkv = Il11IIl1lll.ll1lIll1II11; if (mmkv == null) { return 0; } try { return mmkv.decodeInt("sp_key_host_index", 0); } catch (Throwable unused) { return 0; } } public static String Ill11llllIl11() { int i = 0; PatchProxyResult proxy = PatchProxy.proxy(new Object[0], null, changeQuickRedirect, true, 4, new Class[0], String.class); if (proxy.isSupported) { return (String) proxy.result; } List<String> list = ll1lIll1II11; String str = "|"; if (list == null) { return ""; } StringBuilder sb2 = new StringBuilder(); if (TextUtils.isEmpty(str)) { str = ","; } try { ArrayList arrayList = (ArrayList) list; Iterator it2 = arrayList.iterator(); while (it2.hasNext()) { sb2.append((String) it2.next()); i++; if (i < arrayList.size()) { sb2.append(str); } } } catch (Throwable unused) { } return sb2.toString(); } public static long ll1lIll1II11() { PatchProxyResult proxy = PatchProxy.proxy(new Object[0], null, changeQuickRedirect, true, 5, new Class[0], Long.TYPE); if (proxy.isSupported) { return ((Long) proxy.result).longValue(); } long currentTimeMillis = System.currentTimeMillis(); if (Il11IIl1lll != 0) { long currentTimeMillis2 = System.currentTimeMillis(); long j = currentTimeMillis2 - Il11IIl1lll; Il11IIl1lll = currentTimeMillis2; return j; } Il11IIl1lll = currentTimeMillis; return currentTimeMillis; } public static String ll1lIll1II11(String str) { PatchProxyResult proxy = PatchProxy.proxy(new Object[]{str}, null, changeQuickRedirect, true, 7, new Class[]{String.class}, String.class); if (proxy.isSupported) { return (String) proxy.result; } StringBuilder sb2 = new StringBuilder(); try { sb2.append("ver"); sb2.append("="); sb2.append("1.1.1.221125"); sb2.append("|"); String valueOf = String.valueOf(I11I11lll1I1); sb2.append("opt"); sb2.append("="); sb2.append(valueOf); sb2.append("|"); String valueOf2 = String.valueOf(II1IlIlllI - I11I11lll1I1); sb2.append("reqt"); sb2.append("="); sb2.append(valueOf2); sb2.append("|"); String valueOf3 = String.valueOf(l111111l1III - II1IlIlllI); sb2.append("rest"); sb2.append("="); sb2.append(valueOf3); sb2.append("|"); int size = ((ArrayList) ll1lIll1II11).size() % 32; StringBuilder sb3 = new StringBuilder(); try { MessageDigest instance = MessageDigest.getInstance("MD5"); instance.update(str.getBytes()); for (byte b : instance.digest()) { int i = b & 255; if (i < 16) { sb3.append(0); } sb3.append(Integer.toHexString(i)); } } catch (Throwable unused) { } String substring = sb3.toString().substring(size); sb2.append("ck"); sb2.append("="); sb2.append(substring); sb2.append("|"); if (sb2.toString().endsWith("|")) { sb2.deleteCharAt(sb2.length() - 1); } } catch (Throwable unused2) { } return sb2.toString(); } }