package com.opos.cmn.biz.ststrategy.utils; import android.content.Context; import android.text.TextUtils; import com.opos.cmn.an.f.a; import com.opos.cmn.biz.a.d; import com.opos.cmn.envdev.api.EnvDevConfig; public class f { private static final String a = "f"; public static String a(Context context) { String str = ""; if (context != null) { try { str = EnvDevConfig.getSTConfigUrl(context); } catch (Throwable unused) { } if (TextUtils.isEmpty(str)) { return "https://stg-data.ads.heytapmobi.com/proxy/strategy/"; } String str2 = a; a.b(str2, "getSTConfigUrl pub=" + "https://stg-data.ads.heytapmobi.com/proxy/strategy/"); } return str; } public static boolean a(String str) { return str == null || "".equals(str.trim()); } public static boolean b(Context context) { boolean z = false; if (context != null) { try { if (d.a(context).equalsIgnoreCase(d.b(context))) { z = true; } } catch (Exception e2) { a.c(a, "", e2); } } String str = a; a.b(str, "isLastRegion=" + z); return z; } }