package com.zx.ad.modulecommon;

public class AdNetConfig {

    public static enum Environment {

        DEV,

        TEST,

        PRODUCT

    }

    // 根据调试选项更新环境
    public static Environment sEnvironment = Environment.PRODUCT;// 当前环境
    public static String BASE_WEB_URL = "";
    public static String BASE_URL = "";
    public static String BASE_AD_URL = "";
    public static String BASE_NEW_URL = "";
    public static String BASE_FEED_URL = "";
    public static String URL_REPORT_BASE = "http://report.zhangxinhulian.com/";
    public static final String HOME_BANNER_BASE_URL = "https://bs.zhangxinhulian.com/";

    public static void setBase_Url(Environment s) {
        sEnvironment = s;
        switch (sEnvironment) {
            case PRODUCT:
                BASE_URL = "https://api.zhangxinhulian.com/";
                BASE_WEB_URL = "https://www.zhangxinhulian.com/";
                BASE_NEW_URL = "https://newapi.zhangxinhulian.com/";
                BASE_FEED_URL = "https://feedapi.zhangxinhulian.com/";
                BASE_AD_URL = "https://bs.zhangxinhulian.com/";
                URL_REPORT_BASE = "https://report.zhangxinhulian.com/";
                break;
            case TEST:
                BASE_URL = "https://sandbox.zhangxinhulian.com/";
                BASE_WEB_URL = "https://www.zhangxinhulian.com/";
                BASE_NEW_URL = "http://newapi.zhangxinhulian.com/";
                BASE_FEED_URL = "http://feedapi.zhangxinhulian.com/";
                BASE_AD_URL = "https://bs.zhangxinhulian.com/";
                URL_REPORT_BASE = "http://report.zhangxinhulian.com/";
                break;
            default:
                BASE_URL = "http://apitest.zhangxinhulian.com/";
                BASE_WEB_URL = "http://www.zhangxinhulian.com:8888/";
                BASE_NEW_URL = "http://newapitest.zhangxinhulian.com/";
                BASE_FEED_URL = "http://feedapitest.zhangxinhulian.com/";
                BASE_AD_URL = "http://bstest.zhangxinhulian.com/";
                URL_REPORT_BASE = "http://reporttest.zhangxinhulian.com/";
                break;
        }
    }

    public static class Ad {
        public static final String URL_EVENT = "logCollection/log/v1/userLogCollection";
        public static final String URL_GET_ADS_V4 =  "v4/ads";

    }
}
