小红书.apk(点击下载) / b.java


package com.tencent.beacon.core.protocol.a;

import cn.jpush.android.local.JPushConstants;

/* compiled from: Constant */
public final class b {
    public static String a(boolean z14, boolean z15, boolean z16, String str) {
        if (z14) {
            if (str == null || "".equals(str)) {
                str = z15 ? "http://oth.eve.mdt.qq.com:8080/analytics/upload" : "http://oth.str.mdt.qq.com:8080/analytics/upload";
            }
            return z16 ? "http://183.36.108.226:8080/analytics/upload" : str;
        }
        if (str == null || "".equals(str)) {
            str = "";
        } else {
            int indexOf = str.indexOf(JPushConstants.HTTP_PRE);
            if (indexOf != -1) {
                str = str.substring(indexOf + 7, str.indexOf(":", 7));
            }
        }
        if (str == null || "".equals(str)) {
            str = z15 ? "oth.eve.mdt.qq.com" : "oth.str.mdt.qq.com";
        }
        return z16 ? "183.36.108.226" : str;
    }

    public static String a(String str) {
        return JPushConstants.HTTP_PRE + str + "/analytics/upload";
    }
}