package com.ym.library.net;


import static com.ym.modulecommon.net.NetConfig.BASE_FEED_URL;

/**
 * Created by gaoleichao on 2018/5/2.
 */

public class NetConfig {


    /*public static enum Environment {

        DEV,

        TEST,

        PRODUCT

    }

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

    public static void setBase_Url(Environment s) {
        sEnvironment = s;
        switch (sEnvironment) {
            case PRODUCT:
                BASE_URL = "https://fsapi.ihuomao.com/";
                BASE_WEB_URL = "https://www.zhangxinhulian.com/";
                BASE_NEW_URL = "http://newapi.zhangxinhulian.com/";
                BASE_FEED_URL = "https://fsapi.ihuomao.com/";
                BASE_AD_URL = "https://bs.ihuomao.com/";
                URL_REPORT_BASE = "http://report.ihuomao.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://feedapitest.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 = "https://bstest.zhangxinhulian.com/";
                URL_REPORT_BASE = "http://reporttest.zhangxinhulian.com/";

                break;
        }
    }*/

    public static class Other {
        public static final String APP_CONFIG = "app/v1/novel/lua";
        //关于我们
        public static String ABOUT_US_URL = "http://newspool.zhangxinhulian.com/sspapiNovel/su/custom/guazixiaoshuoapp/aboutMe.html";
        //隐私协议
        public static String PRIVACY_PROTOCOL_URL = "http://newspool.zhangxinhulian.com/sspapiNovel/su/custom/guazixiaoshuoapp/privacy.html";

        //用户协议
        public static final String USER_PROTOCOL_URL = "http://newspool.zhangxinhulian.com/sspapiNovel/su/custom/guazixiaoshuoapp/user.html";
        //帮助与反馈
        public static String HELP_AND_FEEDBACK_URL = "http://newspool.zhangxinhulian.com/sspapiNovel/su/custom/guazixiaoshuoapp/help.html";
        public static final String INIT_URL = "http://feed.ssp.zhangxinhulian.com/app/v1/novel/info?appKey=faba1d018f76086";

        public static String FENLEI_URL = "http://newspool.zhangxinhulian.com/sspapiNovel/su/custom/guazixiaoshuoapp/privacy.html";
        public static final String URL_EVENT = "logCollection/log/v1/userLogCollection";
        public static String big_award = "";

    }


    public static class News {
        public static final String URL_NEW_TYPE_AWARD_DATA = "app/v2/info/getTypeAwardData";
        public static final String URL_NEW_TYPE_ADD_COIN = "app/v2/common/award";
        public static final String URL_NEW_TYPE_ADD_COIN_DOUBLE = "app/v2/common/award/doublingAward";
    }

    public static class Task {
        public static final String URL_TASK_QUERYTASK = "api/v1/userTask/getAdStatus";
        public static final String TASK_URL = "app/v2/novel/taskListWithStat";//任务列表
        public static final String TASK_COMPLETE_TASK = "app/v1/game/complete-task";//任务领取
    }

    public static class H5 {
        public static String WEB_URL_READ_HELP = "";
        public static String WEB_URL_GLOD_DETAIL;

        public static String WEB_URL_CHANGE_DETAIL;

        /**
         * 提现注意事项
         */
        public static String WEB_URL_WITHDRAW_MATTERS_NEED;
        public static String MAKE_MONEY;
        public static String HEALTH_REPORT;
        public static String HEALTH_REPORT_HISTORY;
        public static String ActivityRulesUrl;


        public static String WEB_URL_ABOUT_US;//TODO 关于我们页面

        public static String WEB_URL_PRIVACY = "https://newspool.huolea.com/sspapiNovel/su/custom/duoduohuayuan/privacy.html";//TODO 隐私协议

        public static String WEB_URL_FEEDBACK;//TODO 用户反馈

        public static String WEB_URL_CLEARINSTRUCTIONS;//TODO

        public static String WEB_URL_USER = "https://newspool.huolea.com/sspapiNovel/su/custom/duoduohuayuan/user.html\n";//TODO 用户协议

        public static String WEB_URL_SHARE_LAND; //TODO

        public static String WEB_URL_DIAMONDDETAILSURL; //钻石明细

        public static String WEB_URL_COINDETAILSURL; //金币明细

        public static String WEB_URL_WITHDRAWALRECORDURL; //提现记录

        public static String WEB_URL_REVENUERANKINGURL; //收益排行

        public static String WEB_URL_PURSEURL; //十万金币跳转
    }

    public static class Novel {

        public static final String NOVEL_INIT_URL = BASE_FEED_URL + "app/v1/novel/info";

    }

    public static class User {
        public static final String URL_DEVEICE_LOGIN_ = "app/v1/auth/tourist-login";//
        public static final String URL_USER_GET_USERINFO_ = "app/v1/location/user/info";
        public static final String URL_TASK_ADD_COINS = "app/v2/novel/storeCoin";
        // public static final String URL_USER_WITHDRAW_BIND_WX = "app/v2/novel/setWithdrawWx";// 微信绑定
        public static final String URL_USER_WITHDRAW_BIND_WX = "app/v1/auth/wxLogin";// 微信绑定
        public static final String URL_USER_ISBINDWITHDRAWWX = "/app/v1/novel/isBindWithdrawWx";// 微信是否绑定
        public static final String URL_USER_MIND = "app/v1/gs/mind";// 注意事项
        public static final String URL_USER_COIN2CASH_CHECK = "app/v1/gs/coin2cash_check";// 兑换接口
    }


    public static class Withdraw {
        public static final String URL_USER_WITHDRA_LIST = "app/v1/gs/withdraw/config";//获取配置列表
        public static final String URL_USER_GUESSMUSIC_LOTTERY = "app/v1/gs/guessMusic/lottery";//我的抽奖/提现列表
        public static final String URL_USER_LOTTERY_CONFIG = "app/v1/gs/lottery/config";//抽奖转盘配置
        public static final String URL_USER_LOTTERY_RESULT = "app/v1/gs/lottery/result";//抽奖转盘抽奖结果
        public static final String URL_USER_GS_PAGE_INFO = "app/v1/gs/gs_page_info";//用户剩余货币
        public static final String URL_USER_GS_DO_WD = "app/v1/gs/do_wd";//提现
        public static final String URL_USER_GS_COIN2CASH = "app/v1/gs/coin2cash";//金币兑换现金
        public static final String URL_USER_WD_HISTORY = "app/v1/gs/wd/history";//提现记录
        public static final String URL_USER_GS_DO_LOTTERY_WD = "app/v2/game/lottery_wd";//我的抽奖提现

    }

    public static class Ad {
        public static final String URL_AD_GET_STATUS = "app/v2/novel/getAdStatusNew";
        public static final String URL_AD_NEW_GET_STATUS = "/app/v2/task/kkz/storeCoin";
    }

    public static final String URL_GET_ADS_V3 = "v4/ads";

    public static class Game {
        public static final String URL_GAME_AD_VIDEO_REPORT = "app/v1/game/report";//看视频上报

        public static final String URL_GAME_BUY_SEED = "app/v1/game/farm/buy_seed";//金币购买种子
        public static final String URL_GAME_CLOUD_SPEED = "app/v1/game/farm/cloud_speed";//云朵加速
        public static final String URL_GAME_HOME_INFO = "app/v1/game/farm/home_info";//首页信息
//               public static final String URL_GAME_LIST_LAND = "app/v1/game/farm/list_land";//菜园地块列表

        public static final String URL_GAME_OPEN_BOX = "app/v1/game/farm/open_box";//开宝箱
        public static final String URL_GAME_ORDER_DATA = "app/v1/game/farm/order_data";//订单数据
        public static final String URL_GAME_ORDER_RECEIVE = "app/v1/game/farm/order_receive";//订单领取
        //        public static final String URL_GAME_UNLOCK_LAND = "app/v1/game/farm/unlock_land";//解锁地块/种植种子/收获果实
        public static final String URL_GAME_USE_ACCELERATORS = "app/v1/game/farm/use_accelerators";//加速剂加速
        public static final String URL_GAME_WAREHOUSE_DATA = "app/v1/game/farm/warehouseData";//仓库列表
        public static final String URL_GAME_TURNTABLE_LIST = "app/v1/game/farm/turntable_list";//转盘列表
        public static final String URL_GAME_FARM_LOTTERY = "app/v1/game/ddcy/lottery";//转盘抽奖
        public static final String URL_GAME_FARM_LIST = "app/v1/game/farm/sign_list";//签到列表
        public static final String URL_GAME_FARM_DAILY_TASK = "app/v1/game/farm/daily_task";//每日金币任务
        public static final String URL_GAME_ACCELERATORS_TASK = "app/v1/game/ddcy/accelerators_task_receiveV2";//每日加速剂任务

        public static final String URL_GAME_INCR_SEED = "app/v1/game/farm/incr_seed";//看视频获得种子
        public static final String URL_GAME_INCR_ACCELERATORS = "app/v1/game/farm/incr_accelerators";//看视频获得加速剂
        public static final String URL_GAME_DAILY_TASK_RECEIVE = "app/v1/game/farm/daily_task_receive";//看视频获得加速剂
        public static final String URL_GAME_FARM_RANK_RECEIVE = "app/v1/game/farm/rank_receive";//排行榜领取
        public static final String URL_GAME_THIRD_PARTY = "app/v1/game/third_party";//加速剂任务看视频

        //        public static final String URL_GAME_WITHDRAW_LIST = "app/v1/game/ddcy/withdraw_list";//兑换列表
//       public static final String URL_GAME_DOWD = "app/v1/game/ddcy/do_wd";//兑换接口
        public static final String URL_GAME_WD_HISTORY = "app/v1/game/ddcy/wd_history";//兑换记录
        public static final String URL_GAME_ACCELERATORS_TASK_RECEIVE = "app/v1/game/ddcy/accelerators_task_receiveV2";//加速剂任务领取
        public static final String URL_GAME_USER_GUIDE = "app/v1/game/ddcy/user_guide";

        public static final String URL_GAME_RED_PACK_LIST="app/v1/game/farm/rp_list";//红包列表
        public static final String URL_GAME_RED_PACK_RECEIVE="app/v1/game/farm/rp/receive";//拆红包  参数传红包id
        public static final String URL_GAME_RED_PACK_AWARD_RECEIVE="app/v3/common/award/multiple";//翻倍领取接口

        public static final String URL_GAME_CLOUD_CHECK = "app/v1/game/farm/cloud_check";//云朵加速判断

        public static final String URL_GAME_OPEN_PLANT_BOX = "app/v1/game/ddcy/open_plant_box";//底部拆红包

        public static final String URL_GAME_CLOCK_LIST = "app/v1/game/ddcy/clock_list";//打卡提现列表
        public static final String URL_GAME_DO_WD = "app/v1/game/ddcy/clock_wd";//打卡提现

        public static final String URL_GAME_TASK_PROCESS = "app/v1/game/task_process";//福利中心钻石进度
        public static final String URL_GAME_WELFARE_VIDEO_REPORT = "app/v1/game/welfare_video_report";//福利中心看视频任务
        public static final String URL_GAME_WELFARE_TASK_BOX = "app/v1/game/farm/welfare_task_box";//福利中心宝箱领取
        public static final String URL_GAME_WELFARE_TASK_CASH = "app/v1/game/task_cash";//福利中心红包领取
        public static final String URL_COLLECT_CARD = "app/v1/collect-card/list";//宝箱卡片列表
        public static final String URL_COLLECT_CARD_PUT = "app/v1/collect-card/put";//宝箱卡片拼图
        public static final String URL_COLLECT_CARD_ADV = "app/v1/collect-card/adv";//看广告一键拼图
        public static final String URL_COLLECT_CARD_AUTOMATIC = "app/v1/collect-card/automatic";//已有的卡片自动拼接到宝箱上
        public static final String URL_COLLECT_CARD_OPEN = "app/v1/collect-card/open";//开宝箱
        public static final String URL_COLLECT_CARD_ADV_PUT_OR_ADD = "app/v1/collect-card/advPutOrAdd";//看广告单个图片获取或者拼图
        public static final String URL_COLLECT_CARD_ADD_CARD = "app/v1/collect-card/addCard";//收金币获得卡片
        //        public static final String URL_GAME_HOME_WD_LIST = "app/v1/game/ddcy/home_wd_list";//首页展示果实列表
        public static final String URL_CLOCK_BOX_RECEIVE = "app/v1/game/ddcy/clock_box_receive";//打卡普通打卡任务领取

        public static final String URL_GAME_VIDEO_TASK_COMPLETE = "app/v1/game/video_task_complete";//看领金币视频任务
        public static final String URL_GAME_WAREHOUSEDATA = "app/v1/game/ddcy/warehouseData";//仓库列表

        //=========================================花园=========================================
//        public static final String URL_GAME_LIST_LAND = "app/v1/game/ddhy/list_land";//花园地块列表
        public static final String URL_GAME_LIST_LAND = "app/v1/game/ddhy/list_land_V2";//花园地块列表
//        public static final String URL_GAME_UNLOCK_LAND = "app/v1/game/ddhy/unlock_land";//花园 解锁地块/种植种子/收获果实
        public static final String URL_GAME_UNLOCK_LAND = "app/v1/game/ddhy/unlock_land_V2";//花园 解锁地块/种植种子/收获果实/解锁倒计时

        public static final String URL_GAME_ORDER_LIST = "app/v1/game/ddhy/list_order";//花园 订单列表
        public static final String URL_GAME_WITHDRAW_LIST = "app/v1/game/ddhy/withdraw_list";//兑换列表
        public static final String URL_GAME_DOWD = "app/v1/game/ddhy/do_wd";//兑换接口
    }
}
