package jd.wjlogin_sdk.util.e0; import android.text.TextUtils; import com.igexin.push.f.p; import com.jingdong.sdk.jdhttpdns.config.HttpDnsConfig; import java.net.URLEncoder; import jd.wjlogin_sdk.common.DevelopType; import jd.wjlogin_sdk.common.f; import jd.wjlogin_sdk.config.ConfigHostMode; import jd.wjlogin_sdk.config.a; import jd.wjlogin_sdk.util.e; import jd.wjlogin_sdk.util.g; import jd.wjlogin_sdk.util.m; import jd.wjlogin_sdk.util.r; /* compiled from: Proguard */ public class b { public static String a() { return ConfigHostMode.getConfigMode() == 0 ? c.f : c.g; } public static String b() { return HttpDnsConfig.SCHEMA_HTTP + "10" + "." + "170" + "." + "179" + "." + "11" + "/"; } public static String c() { int debugModel = DevelopType.getDebugModel(); if (debugModel != 1) { return debugModel == 2 ? "https://beta-wlmonitr.m.jd.com/online_report" : "https://wlmonitor.m.jd.com/online_report"; } return b() + c.k; } public static String d(String str) { String loginURL = f.a().getLoginURL(); if (!TextUtils.isEmpty(loginURL)) { return loginURL; } int debugModel = DevelopType.getDebugModel(); if (debugModel == 1) { return b() + str; } else if (debugModel == 2) { return c.n + str; } else { return c.m + str; } } public static String e(String str) { int debugModel = DevelopType.getDebugModel(); if (debugModel == 1) { return b(b() + str); } else if (debugModel == 2) { return b(c.A + str); } else { return b("https://wlogin.m.jd.com/cgi-bin/wlogin/" + str); } } public static String f(String str) { int debugModel = DevelopType.getDebugModel(); if (debugModel == 1) { return b() + str; } else if (debugModel == 2) { return c.f3069c + str; } else { return c.b + str; } } public static String a(String str) { try { String encode = URLEncoder.encode(str, p.b); return encode == null ? "" : encode; } catch (Exception unused) { return ""; } } public static String c(String str) { if (DevelopType.getDebugModel() == 0) { return b("https://wlogin.m.jd.com/cgi-bin/wlogin/" + str); } return b(c.w + str); } public static String b(String str) { if (!a.c().h()) { return str; } return String.format("%1$s?client=%2$s&clientVersion=%3$s&uuid=%4$s&osVersion=%5$s&networkType=%6$s&lang=%7$s&sdkVersion=%8$s&dbrand=%9$s&dmodel=%10$s&dname=%11$s", str, "android", a(g.d().c()), a(jd.wjlogin_sdk.common.h.a.j()), a(jd.wjlogin_sdk.common.h.a.f()), a(r.b(jd.wjlogin_sdk.common.b.a())), a(m.b(jd.wjlogin_sdk.common.b.a())), e.a, a(jd.wjlogin_sdk.common.h.a.c()), a(jd.wjlogin_sdk.common.h.a.d()), a(jd.wjlogin_sdk.common.h.a.e())); } public static String d() { String reportURL = f.a().getReportURL(); if (!TextUtils.isEmpty(reportURL)) { return reportURL; } if (DevelopType.getDebugModel() != 1) { return g.b() != 1 ? "https://wlmonitor.m.jd.com/login_report" : "https://wlmonitor.jd.co.th/login_report"; } return b() + c.j; } }