酷狗概念版 v2.5.5版本的 MD5 值为:782d327088fca4e58310f35a56f41319

以下内容为反编译后的 av.java 源代码,内容仅作参考


package com.kugou.fanxing.util;

import android.text.TextUtils;
import java.net.URLDecoder;

public class av {

    private static volatile String f56836a = "http://fxbssdl.kgimg.com";

    private static String f56837b = "http://p3.fx.kgimg.com";

    private static String f56838c = "http://s3.fx.kgimg.com";

    public static String a(String str) {
        if (TextUtils.isEmpty(str)) {
            if (!com.kugou.common.utils.as.f54365e) {
                return "";
            }
            com.kugou.common.utils.as.d("UrlUtil", "url is empty");
            return "";
        }
        if (str.startsWith("https://") || str.startsWith("http://") || str.startsWith("file://")) {
            return str;
        }
        String str2 = str.contains("/bss/mfx") ? f56836a : str.contains("/v2") ? f56837b : f56838c;
        if (str2.endsWith("/")) {
            str2 = str2.substring(1);
        }
        if (!str.startsWith("/")) {
            str = "/" + str;
        }
        return str2 + str;
    }

    public static String b(String str) {
        if (TextUtils.isEmpty(str) || !str.contains("%")) {
            return null;
        }
        try {
            return URLDecoder.decode(str);
        } catch (IllegalArgumentException unused) {
            return str;
        }
    }
}