Example #1
0
        /// <summary>
        /// 获取对应的URL
        /// </summary>
        /// <param name="hc"></param>
        /// <returns></returns>
        public static string GetURL(HTTPServiceUrlCollection hc, string Parameter1 = "")
        {
            bool   r   = USeManager.Instance.Release;//是否正式版
            string url = USeManager.Instance.MqttAddress;
            string sso = USeManager.Instance.SSOAddress;

            if (url != null && sso != null)
            {
                try
                {
                    switch (hc)
                    {
                    /// <summary>
                    /// 获取资金金额和资金使用率
                    /// </summary>
                    case HTTPServiceUrlCollection.GetAvaliableQualityCash:
                        if (r)
                        {
                            return(string.Format("http://{0}/account/fund/balance", Helper.GetAppConfig("orderHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8089/account/fund/balance", url));
                        }

                    /// <summary>
                    /// 获取授信额度
                    /// </summary>
                    case HTTPServiceUrlCollection.GetDelistReditQuality:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/companyCredit/queryCreditInfo?", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/companyCredit/queryCreditInfo?", url));
                        }

                    /// <summary>
                    /// 获取保证金比例[hanyu URL需要确认一下]
                    /// </summary>
                    case HTTPServiceUrlCollection.GetCommIdMarginRadio:
                        if (r)
                        {
                            return(string.Format("http://{0}/depositscale/", Helper.GetAppConfig("userHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8081/v1/depositscale/", url));
                        }

                    /// <summary>
                    /// 获取合约基础信息
                    /// </summary>
                    case HTTPServiceUrlCollection.GetBaseInstrumentsInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/futuredata/data/base", Helper.GetAppConfig("futuredataHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8088/futuredata/data/base", url));
                        }

                    /// <summary>
                    /// 获取所有挂牌列表信息
                    /// </summary>
                    case HTTPServiceUrlCollection.GetList:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/commodityInfo/list", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/commodityInfo/list", url));
                        }

                    /// <summary>
                    /// 获取自己挂牌列表信息
                    /// </summary>
                    case HTTPServiceUrlCollection.GetMyPutBrandList:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/orderInfo/commlist?", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/orderInfo/commlist?", url));
                        }

                    /// <summary>
                    /// 获取个人信息
                    /// </summary>
                    case HTTPServiceUrlCollection.GetPersonalInformation:
                        if (r)
                        {
                            return(string.Format("http://{0}/user/me", Helper.GetAppConfig("userHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8081/user/me", url));
                        }

                    /// <summary>
                    /// 获取仓库基本信息
                    /// </summary>
                    case HTTPServiceUrlCollection.GetBaseWareHouseInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/warehouseInfo/list", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/warehouseInfo/list", url));
                        }

                    /// <summary>
                    /// 获取指定仓库URL
                    /// </summary>
                    case HTTPServiceUrlCollection.GetWareHouseInfoUrl:
                        //http://172.16.88.152/tradesystem/pay/transform.html?id=3&path=/tradesystem/pay/warehouse/detail.html
                        //http://172.16.88.152/tradesystem/pay/transform.html?id=3&path=/tradesystem/pay/warehouse/detail.html
                        //return string.Format("http://{0}/tradesystem/pay/transform.html", url);
                        if (r)
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?id={1}&path=/tradesystem/pay/warehouse/detail.html", Helper.GetAppConfig("address"), Parameter1));
                        }
                        else
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?id={1}&path=/tradesystem/pay/warehouse/detail.html", url, Parameter1));
                        }

                    /// <summary>
                    /// 品牌等级信息
                    /// </summary>
                    case HTTPServiceUrlCollection.GetBaseLevelBrandInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/levelBrandInfo/list?", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/levelBrandInfo/list?", url));
                        }

                    /// <summary>
                    /// 摘牌成交列表
                    /// </summary>
                    case HTTPServiceUrlCollection.GetDelistTradedListInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/orderInfo/orderlist?", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/orderInfo/orderlist?", url));
                        }

                    /// <summary>
                    /// 挂牌操作
                    /// </summary>
                    case HTTPServiceUrlCollection.PostBrandOrderRequireInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/commodityInfo/listing", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/commodityInfo/listing", url));
                        }

                    /// <summary>
                    /// 摘牌操作
                    /// </summary>
                    case HTTPServiceUrlCollection.PostDelistBrandOrderRequireInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/delistComm/delistCommodityCS", Helper.GetAppConfig("serviceHost")));
                            //return string.Format("http://{0}/v1/delistComm/delistCommodity", Helper.GetAppConfig("serviceHost"));
                        }
                        else
                        {
                            //return string.Format("http://{0}/v1/delistComm/delistCommodityCS", "172.16.84.32:9240");
                            return(string.Format("http://{0}:9242/v1/delistComm/delistCommodity", url));
                        }

                    /// <summary>
                    /// 核销操作
                    /// </summary>
                    case HTTPServiceUrlCollection.PostDelistBrandOrderVerifyRequireInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/delistComm/delistConfirm", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/delistComm/delistConfirm", url));
                        }

                    /// <summary>
                    /// 撤单操作
                    /// </summary>
                    case HTTPServiceUrlCollection.PostActionBrandOrderRequireInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/commodityInfo/revoke", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/commodityInfo/revoke", url));
                        }

                    /// <summary>
                    /// 登录请求
                    /// </summary>
                    case HTTPServiceUrlCollection.LoginHttp:
                        return(string.Format("http://{0}/api/user/login", sso));

                    /// <summary>
                    /// 登录操作
                    /// </summary>
                    case HTTPServiceUrlCollection.Login:
                        if (r)
                        {
                            return(string.Format("http://{1}/sso/sign/signin.html?next=http://{0}/tradesystem/pay/home/index.html&label=useonline-gold", Helper.GetAppConfig("address"), sso));;
                        }
                        else
                        {
                            return(string.Format("http://{1}/sso/sign/signin.html?next=http://{0}/tradesystem/pay/home/index.html&label=useonline-gold", url, sso));
                        }

                    /// <summary>
                    /// 登出操作
                    /// </summary>
                    case HTTPServiceUrlCollection.LoginOff:
                        if (r)
                        {
                            return(string.Format("http://{0}/uc/logout", Helper.GetAppConfig("userHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8081/uc/logout", url));
                        }

                    /// <summary>
                    /// 历史交易查询
                    /// </summary>
                    case HTTPServiceUrlCollection.History:
                        if (r)
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?path=/tradesystem/pay/capital/index.html", Helper.GetAppConfig("address")));
                        }
                        else
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?path=/tradesystem/pay/capital/index.html", url));
                        }
                    //return string.Format("http://{0}/tradesystem/pay/capital/index.html", url);

                    /// <summary>
                    /// 基础管理
                    /// </summary>
                    case HTTPServiceUrlCollection.BasicManagement:
                        if (r)
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?path=/tradesystem/pay/accountManage/personal/index.html", Helper.GetAppConfig("address")));
                        }
                        else
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?path=/tradesystem/pay/accountManage/personal/index.html", url));
                        }
                    //return string.Format("http://{0}/tradesystem/pay/accountManage/personal/index.html", url);

                    /// <summary>
                    /// 注册
                    /// </summary>
                    case HTTPServiceUrlCollection.Registered:
                        if (r)
                        {
                            return(string.Format("http://{1}/sso/sign/signup.html?next=http://{0}/tradesystem/pay/home/index.html&label=useonline-gold", Helper.GetAppConfig("address"), sso));
                        }
                        else
                        {
                            return(string.Format("http://{1}/sso/sign/signup.html?next=http://{0}/tradesystem/pay/home/index.html&label=useonline-gold", url, sso));
                        }

                    /// <summary>
                    /// 黑白名单列表
                    /// </summary>
                    //http://172.16.88.152:8081/page/blackwhitelist
                    case HTTPServiceUrlCollection.GetBlackAndWhiteList:
                        if (r)
                        {
                            return(string.Format("http://{0}/page/blackwhitelist", Helper.GetAppConfig("userHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8081/page/blackwhitelist", url));
                        }

                    /// <summary>
                    /// 是否启用白名单
                    /// </summary>
                    case HTTPServiceUrlCollection.GetWhiteState:
                        if (r)
                        {
                            return(string.Format("http://{0}/blackwhitelist/status/1", Helper.GetAppConfig("userHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8081/blackwhitelist/status/1", url));
                        }

                    /// <summary>
                    /// 是否启用黑名单
                    /// </summary>
                    case HTTPServiceUrlCollection.GetBlackState:
                        if (r)
                        {
                            return(string.Format("http://{0}/blackwhitelist/status/0", Helper.GetAppConfig("userHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8081/blackwhitelist/status/0", url));
                        }

                    /// <summary>
                    /// 判断当前客户是否存在于挂牌方的黑名单中
                    /// </summary>
                    case HTTPServiceUrlCollection.GetP2PBlackState:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/commodityInfo/judgeBlackList?publisherId={1}", Helper.GetAppConfig("serviceHost"), Parameter1));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/commodityInfo/judgeBlackList?publisherId={1}", url, Parameter1));
                        }

                    /// <summary>
                    /// 其他
                    /// </summary>
                    default: return("");
                    }
                }
                catch (Exception err)
                {
                    Logger.LogError(err);
                }
            }
            return("");
        }
Example #2
0
        /// <summary>
        /// 获取对应的URL
        /// </summary>
        /// <param name="hc"></param>
        /// <returns></returns>
        public static string GetURL(HTTPServiceUrlCollection hc, string Parameter1 = "")
        {
            bool   r          = USeManager.Instance.Release;//是否正式版
            string url        = USeManager.Instance.MqttAddress;
            string sso        = USeManager.Instance.SSOAddress;
            string dataCenter = USeManager.Instance.DataCenterAddress;

            if (url != null && sso != null)
            {
                try
                {
                    switch (hc)
                    {
                    /// <summary>
                    /// Ossor用户URL
                    /// </summary>
                    case HTTPServiceUrlCollection.GetOsserUserURL:

                        return(string.Format("http://183.6.168.58:6620/main.html"));

                    /// <summary>
                    /// 点价用户URL跳转
                    /// </summary>
                    case HTTPServiceUrlCollection.GetUpricingUserURl:

                        return(string.Format("http://183.6.168.58:6620/openapi/user/jump?type=product_mall_detail&user_access_token={0}&id={1}"));

                    /// <summary>
                    /// 获取创建合同信息
                    /// </summary>
                    case HTTPServiceUrlCollection.GetCreatContractInfo:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/commodityInfo/createContract", Helper.GetAppConfig("orderHost")));
                        }
                        else
                        {
                            return(string.Format("http://172.16.88.152:9242/v1/commodityInfo/createContract?", url));
                        }

                    /// <summary>
                    /// 获取资金金额和资金使用率
                    /// </summary>
                    case HTTPServiceUrlCollection.GetAvaliableQualityCash:
                        if (r)
                        {
                            return(string.Format("http://{0}/account/fund/balance", Helper.GetAppConfig("orderHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8089/account/fund/balance", url));
                        }

                    /// <summary>
                    /// 获取授信额度
                    /// </summary>
                    case HTTPServiceUrlCollection.GetDelistReditQuality:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/companyCredit/queryCreditInfo?", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/companyCredit/queryCreditInfo?", url));
                        }

                    /// <summary>
                    /// 获取保证金比例[hanyu URL需要确认一下]
                    /// </summary>
                    case HTTPServiceUrlCollection.GetCommIdMarginRadio:
                        if (r)
                        {
                            return(string.Format("http://{0}/depositscale/", Helper.GetAppConfig("userHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8081/v1/depositscale/", url));
                        }

                    /// <summary>
                    /// 获取合约基础信息
                    /// </summary>
                    case HTTPServiceUrlCollection.GetBaseInstrumentsInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/futuredata/data/base", Helper.GetAppConfig("futuredataHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8088/futuredata/data/base", url));
                        }

                    /// <summary>
                    /// 获取所有挂牌列表信息
                    /// </summary>
                    case HTTPServiceUrlCollection.GetList:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/commodityInfo/list", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/commodityInfo/list", url));
                        }

                    /// <summary>
                    /// 获取自己挂牌列表信息
                    /// </summary>
                    case HTTPServiceUrlCollection.GetMyPutBrandList:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/orderInfo/commlist?", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/orderInfo/commlist?", url));
                        }

                    /// <summary>
                    /// 获取个人信息
                    /// </summary>
                    case HTTPServiceUrlCollection.GetPersonalInformation:
                        if (r)
                        {
                            return(string.Format("http://{0}/user/me", Helper.GetAppConfig("userHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8081/user/me", url));
                        }

                    /// <summary>
                    /// 获取仓库基本信息
                    /// </summary>
                    case HTTPServiceUrlCollection.GetBaseWareHouseInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/warehouseInfo/list", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/warehouseInfo/list", url));
                        }

                    /// <summary>
                    /// 获取指定仓库URL
                    /// </summary>
                    case HTTPServiceUrlCollection.GetWareHouseInfoUrl:
                        //http://172.16.88.152/tradesystem/pay/transform.html?id=3&path=/tradesystem/pay/warehouse/detail.html
                        //http://172.16.88.152/tradesystem/pay/transform.html?id=3&path=/tradesystem/pay/warehouse/detail.html
                        //return string.Format("http://{0}/tradesystem/pay/transform.html", url);
                        if (r)
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?id={1}&path=/tradesystem/pay/warehouse/detail.html", Helper.GetAppConfig("address"), Parameter1));
                        }
                        else
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?id={1}&path=/tradesystem/pay/warehouse/detail.html", url, Parameter1));
                        }

                    /// <summary>
                    /// 品牌等级信息
                    /// </summary>
                    case HTTPServiceUrlCollection.GetBaseLevelBrandInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/levelBrandInfo/list?", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/levelBrandInfo/list?", url));
                        }

                    /// <summary>
                    /// 摘牌成交列表
                    /// </summary>
                    case HTTPServiceUrlCollection.GetDelistTradedListInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/orderInfo/orderlist?", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/orderInfo/orderlist?", url));
                        }

                    /// <summary>
                    /// 挂牌操作
                    /// </summary>
                    case HTTPServiceUrlCollection.PostBrandOrderRequireInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/commodityInfo/listing", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/commodityInfo/listing", url));
                        }

                    /// <summary>
                    /// 摘牌操作
                    /// </summary>
                    case HTTPServiceUrlCollection.PostDelistBrandOrderRequireInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/delistComm/delistCommodityCS", Helper.GetAppConfig("serviceHost")));
                            //return string.Format("http://{0}/v1/delistComm/delistCommodity", Helper.GetAppConfig("serviceHost"));
                        }
                        else
                        {
                            //return string.Format("http://{0}/v1/delistComm/delistCommodityCS", "172.16.84.32:9240");
                            return(string.Format("http://{0}:9242/v1/delistComm/delistCommodity", url));
                        }

                    /// <summary>
                    /// 核销操作
                    /// </summary>
                    case HTTPServiceUrlCollection.PostDelistBrandOrderVerifyRequireInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/delistComm/delistConfirm", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/delistComm/delistConfirm", url));
                        }

                    /// <summary>
                    /// 撤单操作
                    /// </summary>
                    case HTTPServiceUrlCollection.PostActionBrandOrderRequireInfoUrl:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/commodityInfo/revoke", Helper.GetAppConfig("serviceHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/commodityInfo/revoke", url));
                        }

                    /// <summary>
                    /// 登录请求
                    /// </summary>
                    case HTTPServiceUrlCollection.LoginHttp:
                        return(string.Format("http://{0}/api/user/login", sso));

                    /// <summary>
                    /// 登录操作
                    /// </summary>
                    case HTTPServiceUrlCollection.Login:
                        //if (r)
                        //{
                        //    return string.Format("http://{1}/sso/sign/signin.html?next=http://{0}/tradesystem/pay/home/index.html&label=useonline-gold", Helper.GetAppConfig("address"), sso); ;
                        //}
                        //else
                        //{
                        //    return string.Format("http://{1}/sso/sign/signin.html?next=http://{0}/tradesystem/pay/home/index.html&label=useonline-gold", url, sso);
                        //}

                        if (r)
                        {
                            return(string.Format("http://{0}/uc/login", Helper.GetAppConfig("userHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8081/uc/login", url));
                        }

                    /// <summary>
                    /// 登出操作
                    /// </summary>
                    case HTTPServiceUrlCollection.LoginOff:
                        if (r)
                        {
                            return(string.Format("http://{0}/uc/logout", Helper.GetAppConfig("userHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8081/uc/logout", url));
                        }

                    /// <summary>
                    /// 历史成交列表
                    /// </summary>
                    case HTTPServiceUrlCollection.HistoryDeal:
                        if (r)
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?path=/tradesystem/pay/capital/list.html", Helper.GetAppConfig("address")));
                        }
                        else
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?path=/tradesystem/pay/capital/list.html", url));
                            //return string.Format("http://{0}/tradesystem/pay/capital/index.html", url);
                        }

                    /// <summary>
                    /// 历史交易查询
                    /// </summary>
                    case HTTPServiceUrlCollection.History:
                        if (r)
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?path=/tradesystem/pay/capital/index.html", Helper.GetAppConfig("address")));
                        }
                        else
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?path=/tradesystem/pay/capital/index.html", url));
                            //return string.Format("http://{0}/tradesystem/pay/capital/index.html", url);
                        }

                    /// <summary>
                    /// 基础管理
                    /// </summary>
                    case HTTPServiceUrlCollection.BasicManagement:
                        if (r)
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?path=/tradesystem/pay/accountManage/personal/index.html", Helper.GetAppConfig("address")));
                        }
                        else
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?path=/tradesystem/pay/accountManage/personal/index.html", url));
                            //return string.Format("http://{0}/tradesystem/pay/accountManage/personal/index.html", url);
                        }

                    /// <summary>
                    /// 黑白名单管理
                    /// </summary>
                    case HTTPServiceUrlCollection.BlackAndWhiteManagement:
                        if (r)
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?path=/tradesystem/pay/accountManage/blackWhite/index.html", Helper.GetAppConfig("address")));
                        }
                        else
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?path=/tradesystem/pay/accountManage/blackWhite/index.html", url));
                        }

                    /// <summary>
                    /// 账户管理
                    /// </summary>
                    case HTTPServiceUrlCollection.AccountManagement:
                        if (r)
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?path=/tradesystem/pay/accountManage/staff/index.html", Helper.GetAppConfig("address")));
                        }
                        else
                        {
                            return(string.Format("http://{0}/tradesystem/pay/transform.html?path=/tradesystem/pay/accountManage/staff/index.html", url));
                        }

                    /// <summary>
                    /// 数据中心
                    /// </summary>
                    case HTTPServiceUrlCollection.DataCenter:
                        return(string.Format("http://{0}/datachart/html/transfor.html?path=http://{0}/datachart/html/datasynthesis/index.html?U2FsdGVkX192q6hrmgqiGCztfVLVYqZ0ASELCpRUcKilCBujBJScbpsy8fF967/ABR09T8oRvCkNnm83Nft6TNo0tVddTDrLfNSW4bXn178=", dataCenter));

                    /// <summary>
                    /// 资讯
                    /// </summary>
                    case HTTPServiceUrlCollection.Information:
                        return(string.Format("http://{0}/datachart/html/transfor.html?path=http://{0}/datachart/html/information/index.html?U2FsdGVkX19gSJWe2TG9jhPAjV/rdXvFZjQns0oHqvE=", dataCenter));

                    /// <summary>
                    /// 注册
                    /// </summary>
                    case HTTPServiceUrlCollection.Registered:
                        if (r)
                        {
                            return(string.Format("http://{1}/sso/sign/signup.html?next=http://{0}/tradesystem/pay/home/index.html&label=useonline-gold", Helper.GetAppConfig("address"), sso));
                        }
                        else
                        {
                            return(string.Format("http://{1}/sso/sign/signup.html?next=http://{0}/tradesystem/pay/home/index.html&label=useonline-gold", url, sso));
                        }

                    /// <summary>
                    /// 黑白名单列表
                    /// </summary>
                    //http://172.16.88.152:8081/page/blackwhitelist
                    case HTTPServiceUrlCollection.GetBlackAndWhiteList:
                        if (r)
                        {
                            return(string.Format("http://{0}/page/blackwhitelist", Helper.GetAppConfig("userHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8081/page/blackwhitelist", url));
                        }

                    /// <summary>
                    /// 是否启用白名单
                    /// </summary>
                    case HTTPServiceUrlCollection.GetWhiteState:
                        if (r)
                        {
                            return(string.Format("http://{0}/blackwhitelist/status/1", Helper.GetAppConfig("userHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8081/blackwhitelist/status/1", url));
                        }

                    /// <summary>
                    /// 是否启用黑名单
                    /// </summary>
                    case HTTPServiceUrlCollection.GetBlackState:
                        if (r)
                        {
                            return(string.Format("http://{0}/blackwhitelist/status/0", Helper.GetAppConfig("userHost")));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8081/blackwhitelist/status/0", url));
                        }

                    /// <summary>
                    /// 判断当前客户是否存在于挂牌方的黑名单中
                    /// </summary>
                    case HTTPServiceUrlCollection.GetP2PBlackState:
                        if (r)
                        {
                            return(string.Format("http://{0}/v1/commodityInfo/judgeBlackList?publisherId={1}", Helper.GetAppConfig("serviceHost"), Parameter1));
                        }
                        else
                        {
                            return(string.Format("http://{0}:9242/v1/commodityInfo/judgeBlackList?publisherId={1}", url, Parameter1));
                        }

                    /// <summary>
                    /// 获取K线数据
                    /// </summary>
                    case HTTPServiceUrlCollection.GetKLineData:
                        //http://172.16.88.152:8088/futuredata/data/daykline?category=cu1712
                        if (r)
                        {
                            return(string.Format("http://{0}/futuredata/data/daykline?category={1}", Helper.GetAppConfig("futuredataHost"), Parameter1));
                        }
                        else
                        {
                            return(string.Format("http://{0}:8088/futuredata/data/daykline?category={1}", url, Parameter1));
                        }

                    /// <summary>
                    /// 其他
                    /// </summary>
                    default: return("");
                    }
                }
                catch (Exception err)
                {
                    Logger.LogError(err);
                }
            }
            return("");
        }