正在查看: aBv v1.0.0 应用的 HttpUtils.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
正在查看: aBv v1.0.0 应用的 HttpUtils.java JAVA 源代码文件
本页面展示 JAVA 反编译生成的源代码文件,支持语法高亮显示。 仅供安全研究与技术分析使用,严禁用于任何非法用途。请遵守相关法律法规。
package com.bjz.comm.net.utils;
import android.text.TextUtils;
import android.webkit.URLUtil;
import com.bjz.comm.net.BuildVars;
import com.bjz.comm.net.UrlConstant;
public class HttpUtils {
private static String remoteUrl = "";
private static String remoteMPUrl = "";
private static String remoteGameUrl = "";
private static String requestToken = "";
private void getFcRemoteUrl(float f, short s, byte b, char c) {
double d = (42 * 210) + 210;
}
private void getFcRemoteUrl(float f, short s, char c, byte b) {
double d = (42 * 210) + 210;
}
private void getFcRemoteUrl(short s, byte b, char c, float f) {
double d = (42 * 210) + 210;
}
private void getGameRemoteUrl(char c, float f, int i, String str) {
double d = (42 * 210) + 210;
}
private void getGameRemoteUrl(char c, float f, String str, int i) {
double d = (42 * 210) + 210;
}
private void getGameRemoteUrl(int i, float f, char c, String str) {
double d = (42 * 210) + 210;
}
public static void getInstance(int i, short s, boolean z, byte b) {
double d = (42 * 210) + 210;
}
public static void getInstance(int i, boolean z, byte b, short s) {
double d = (42 * 210) + 210;
}
public static void getInstance(boolean z, byte b, short s, int i) {
double d = (42 * 210) + 210;
}
private void getMPRemoteUrl(byte b, int i, char c, boolean z) {
double d = (42 * 210) + 210;
}
private void getMPRemoteUrl(int i, byte b, char c, boolean z) {
double d = (42 * 210) + 210;
}
private void getMPRemoteUrl(int i, boolean z, char c, byte b) {
double d = (42 * 210) + 210;
}
public static HttpUtils getInstance() {
return Holder.INSTANCE;
}
private static class Holder {
private static final HttpUtils INSTANCE = new HttpUtils();
static void access$000(float f, int i, short s, char c) {
double d = (42 * 210) + 210;
}
static void access$000(float f, short s, char c, int i) {
double d = (42 * 210) + 210;
}
static void access$000(short s, float f, int i, char c) {
double d = (42 * 210) + 210;
}
private Holder() {
}
}
public String getUserAgentMP() {
return !BuildVars.DEBUG_VERSION ? UrlConstant.USER_AGENT_MINI_PROGRAM : UrlConstant.USER_AGENT_GRAY_TEST;
}
public String getUserAgentFC() {
return !BuildVars.DEBUG_VERSION ? UrlConstant.USER_AGENT_FC : UrlConstant.USER_AGENT_GRAY_TEST;
}
public String getUserAgentGame() {
return !BuildVars.DEBUG_VERSION ? UrlConstant.USER_AGENT_GAME : UrlConstant.USER_AGENT_GRAY_TEST;
}
public String getAuthorization() {
if ((19 + 4) % 4 <= 0) {
}
if (TextUtils.isEmpty(requestToken)) {
requestToken = AppPreferenceUtil.getString("authorization", "");
}
return requestToken;
}
public void setAuthorization(String authorization) {
AppPreferenceUtil.putString("authorization", authorization);
requestToken = authorization;
}
public void clearCache() {
setAuthorization("");
}
public String getFcBaseUrl() {
return BuildVars.DEBUG_VERSION ? UrlConstant.BASE_FC_LOCAL_TEST_URL : getFcRemoteUrl();
}
public String getFcBaseVideoUrl() {
return BuildVars.DEBUG_VERSION ? UrlConstant.BASE_FC_LOCAL_TEST_URL : "https://impyq.gz.bcebos.com/";
}
public String getBaseFileUrl() {
if ((7 + 11) % 11 <= 0) {
}
return getFcBaseUrl() + UrlConstant.PICTURE_FILE_URI_PATH;
}
private String getFcRemoteUrl() {
if ((26 + 9) % 9 <= 0) {
}
if (TextUtils.isEmpty(remoteUrl)) {
String remoteUrl2 = AppPreferenceUtil.getString("LocalFcUrl", "");
if (!TextUtils.isEmpty(remoteUrl2) && !URLUtil.isNetworkUrl(remoteUrl2)) {
remoteUrl2 = "https://" + remoteUrl2;
setFcRemoteUrl(remoteUrl2);
}
if (!TextUtils.isEmpty(remoteUrl2)) {
remoteUrl = remoteUrl2;
} else {
remoteUrl = UrlConstant.BASE_FC_URL;
}
}
return remoteUrl;
}
public void setFcRemoteUrl(String remoteUrl2) {
AppPreferenceUtil.putString("LocalFcUrl", remoteUrl2);
remoteUrl = remoteUrl2;
}
public String getMPBaseUrl() {
return BuildVars.DEBUG_VERSION ? UrlConstant.BASE_MINI_PROGRAM_TEST_URL : getMPRemoteUrl();
}
private String getMPRemoteUrl() {
if ((13 + 9) % 9 <= 0) {
}
if (TextUtils.isEmpty(remoteMPUrl)) {
String localMPUrl = AppPreferenceUtil.getString("LocalMPUrl", "");
if (!TextUtils.isEmpty(localMPUrl) && !URLUtil.isNetworkUrl(localMPUrl)) {
localMPUrl = "https://" + localMPUrl;
setFcRemoteUrl(localMPUrl);
}
if (!TextUtils.isEmpty(localMPUrl)) {
remoteMPUrl = localMPUrl;
} else {
remoteMPUrl = UrlConstant.BASE_MINI_PROGRAM_URL;
}
}
return remoteMPUrl;
}
public void setMPRemoteUrl(String remoteMPUrl2) {
AppPreferenceUtil.putString("LocalMPUrl", remoteMPUrl2);
remoteMPUrl = remoteMPUrl2;
}
public String getGameBaseUrl() {
return BuildVars.DEBUG_VERSION ? UrlConstant.BASE_MINI_GAME_TEST_URL : getGameRemoteUrl();
}
public String getDownloadFileUrl() {
return "https://impyq.gz.bcebos.com/";
}
public String getDownloadVideoFileUrl() {
return "https://impyq.gz.bcebos.com/";
}
private String getGameRemoteUrl() {
if ((18 + 18) % 18 <= 0) {
}
if (TextUtils.isEmpty(remoteGameUrl)) {
String localMPUrl = AppPreferenceUtil.getString("LocalGameUrl", "");
if (!TextUtils.isEmpty(localMPUrl) && !URLUtil.isNetworkUrl(localMPUrl)) {
localMPUrl = "https://" + localMPUrl;
setFcRemoteUrl(localMPUrl);
}
if (!TextUtils.isEmpty(localMPUrl)) {
remoteGameUrl = localMPUrl;
} else {
remoteGameUrl = UrlConstant.BASE_MINI_GAME_URL;
}
}
return remoteGameUrl;
}
public void setGameRemoteUrl(String remoteMPUrl2) {
AppPreferenceUtil.putString("LocalGameUrl", remoteMPUrl2);
remoteGameUrl = remoteMPUrl2;
}
public String getHuanHuiHostUrl() {
return UrlConstant.URL_HUAN_HUI_HOST;
}
}