四虎影院 v4.1.6版本的 MD5 值为:3c86dc44d368396917a29935d39af88b
以下内容为反编译后的 n.java 源代码,内容仅作参考
package g.a.b.utils;
import android.text.TextUtils;
import com.blankj.utilcode.util.LogUtils;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
public class n {
public static final String a = "http://";
public static final String b = "https://";
public static String a(String str) {
String trim = str.trim();
if (trim.startsWith("www.")) {
trim = a + trim;
} else if (trim.startsWith("ftp.")) {
trim = "ftp://" + trim;
}
boolean contains = trim.contains(".");
boolean z = TextUtils.isDigitsOnly(trim.replace(".", "")) && trim.replace(".", "").length() >= 4 && trim.contains(".");
boolean contains2 = trim.contains("about:");
boolean z2 = trim.startsWith("ftp://") || trim.startsWith(a) || trim.startsWith(b) || z;
boolean z3 = (trim.contains(LogUtils.PLACEHOLDER) || !contains) && !contains2;
if (z && (!trim.startsWith(a) || !trim.startsWith(b))) {
trim = a + trim;
}
if (!z3) {
if (z2) {
return trim;
}
return a + trim;
}
try {
trim = URLEncoder.encode(trim, "UTF-8");
} catch (UnsupportedEncodingException e2) {
e2.printStackTrace();
}
return "http://www.baidu.com/s?wd=" + trim + "&ie=UTF-8";
}
}