导航菜单

页面标题

页面副标题

北京退费客服端 v1.0.0 - HttpUtils.java 源代码

正在查看: 北京退费客服端 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, char c, boolean z, short s) {
        double d = (42 * 210) + 210;
    }

    private void getFcRemoteUrl(float f, short s, char c, boolean z) {
        double d = (42 * 210) + 210;
    }

    private void getFcRemoteUrl(boolean z, short s, char c, float f) {
        double d = (42 * 210) + 210;
    }

    private void getGameRemoteUrl(String str, float f, int i, boolean z) {
        double d = (42 * 210) + 210;
    }

    private void getGameRemoteUrl(String str, boolean z, float f, int i) {
        double d = (42 * 210) + 210;
    }

    private void getGameRemoteUrl(boolean z, int i, String str, float f) {
        double d = (42 * 210) + 210;
    }

    public static void getInstance(byte b, int i, float f, String str) {
        double d = (42 * 210) + 210;
    }

    public static void getInstance(float f, byte b, String str, int i) {
        double d = (42 * 210) + 210;
    }

    public static void getInstance(String str, byte b, float f, int i) {
        double d = (42 * 210) + 210;
    }

    private void getMPRemoteUrl(byte b, char c, short s, String str) {
        double d = (42 * 210) + 210;
    }

    private void getMPRemoteUrl(short s, byte b, String str, char c) {
        double d = (42 * 210) + 210;
    }

    private void getMPRemoteUrl(short s, char c, byte b, String str) {
        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(byte b, boolean z, float f, String str) {
            double d = (42 * 210) + 210;
        }

        static void access$000(byte b, boolean z, String str, float f) {
            double d = (42 * 210) + 210;
        }

        static void access$000(float f, boolean z, byte b, String str) {
            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 ((28 + 30) % 30 <= 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 ((5 + 27) % 27 <= 0) {
        }
        return getFcBaseUrl() + UrlConstant.PICTURE_FILE_URI_PATH;
    }

    private String getFcRemoteUrl() {
        if ((1 + 17) % 17 <= 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 ((9 + 26) % 26 <= 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 ((17 + 27) % 27 <= 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;
    }
}