161 lines
4.6 KiB
C#
161 lines
4.6 KiB
C#
using System;
|
||
using System.Collections.Generic;
|
||
using System.Configuration;
|
||
using System.Linq;
|
||
using System.Text;
|
||
using System.Threading.Tasks;
|
||
|
||
namespace ServerPartTransmission.Common
|
||
{
|
||
/// <summary>
|
||
/// 系统配置参数
|
||
/// </summary>
|
||
public class AppSettings
|
||
{
|
||
#region 营收数据缓存redis链接库
|
||
internal const string _RevenueRedisConfig = "127.0.0.1:6379,password=123456,connectTimeout=1000,connectRetry=1,syncTimeout=10000";
|
||
/// <summary>
|
||
/// 营收数据缓存redis链接库
|
||
/// </summary>
|
||
public static string RevenueRedisConfig
|
||
{
|
||
get
|
||
{
|
||
if (ConfigurationManager.AppSettings["RevenueRedisConfig"] == null)
|
||
{
|
||
return _CoopMerchantUrls;
|
||
}
|
||
else
|
||
{
|
||
return ConfigurationManager.AppSettings["RevenueRedisConfig"];
|
||
}
|
||
}
|
||
}
|
||
#endregion
|
||
|
||
#region 合作商户平台地址
|
||
internal const string _CoopMerchantUrls = "https://user.eshangtech.com";
|
||
/// <summary>
|
||
/// 合作商户平台地址
|
||
/// </summary>
|
||
public static string CoopMerchantUrls
|
||
{
|
||
get
|
||
{
|
||
if (ConfigurationManager.AppSettings["CoopMerchantUrls"] == null)
|
||
{
|
||
return _CoopMerchantUrls;
|
||
}
|
||
else
|
||
{
|
||
return ConfigurationManager.AppSettings["CoopMerchantUrls"];
|
||
}
|
||
|
||
}
|
||
}
|
||
#endregion
|
||
|
||
#region 综管平台地址(前后端分离项目)
|
||
internal const string _EShangApiMainUrls = "https://api.eshangtech.com/EShangApiMain";
|
||
/// <summary>
|
||
/// 综管平台地址(前后端分离项目)
|
||
/// </summary>
|
||
public static string EShangApiMainUrls
|
||
{
|
||
get
|
||
{
|
||
if (ConfigurationManager.AppSettings["EShangApiMainUrls"] == null)
|
||
{
|
||
return _EShangApiMainUrls;
|
||
}
|
||
else
|
||
{
|
||
return ConfigurationManager.AppSettings["EShangApiMainUrls"];
|
||
}
|
||
|
||
}
|
||
}
|
||
#endregion
|
||
|
||
#region 各业主WebApi项目地址
|
||
internal const string _WebApiProvinceUrls = "https://api.eshangtech.com/WebAPI_Cloud";
|
||
/// <summary>
|
||
/// 综管平台地址(前后端分离项目)
|
||
/// </summary>
|
||
public static string GetWebApiUrls(string ProvinceCode)
|
||
{
|
||
if (ConfigurationManager.AppSettings[ProvinceCode] == null)
|
||
{
|
||
return _EShangApiMainUrls;
|
||
}
|
||
else
|
||
{
|
||
return ConfigurationManager.AppSettings[ProvinceCode];
|
||
}
|
||
}
|
||
#endregion
|
||
|
||
#region 各移动支付渠道地址
|
||
internal const string _url_kwy = "https://www.weiwoju.com/Payapi/Ys/";
|
||
/// <summary>
|
||
/// 客无忧接口
|
||
/// </summary>
|
||
public static string url_kwy
|
||
{
|
||
get
|
||
{
|
||
if (ConfigurationManager.AppSettings["url_kwy"] == null)
|
||
{
|
||
return _url_kwy;
|
||
}
|
||
else
|
||
{
|
||
return ConfigurationManager.AppSettings["url_kwy"];
|
||
}
|
||
|
||
}
|
||
}
|
||
|
||
internal const string _url_yl = "https://jt.vc-card.com/jiaotou/jiaotouTranscation";
|
||
/// <summary>
|
||
/// 银联接口地址
|
||
/// </summary>
|
||
public static string url_yl
|
||
{
|
||
get
|
||
{
|
||
if (ConfigurationManager.AppSettings["url_yl"] == null)
|
||
{
|
||
return _url_yl;
|
||
}
|
||
else
|
||
{
|
||
return ConfigurationManager.AppSettings["url_yl"];
|
||
}
|
||
|
||
}
|
||
}
|
||
|
||
internal const string _url_hksta = "https://openapi.uphicoo.com/customization/eshang/orders/stat";
|
||
/// <summary>
|
||
/// 嗨客移动支付统计接口
|
||
/// </summary>
|
||
public static string url_hksta
|
||
{
|
||
get
|
||
{
|
||
if (ConfigurationManager.AppSettings["url_hksta"] == null)
|
||
{
|
||
return _url_hksta;
|
||
}
|
||
else
|
||
{
|
||
return ConfigurationManager.AppSettings["url_hksta"];
|
||
}
|
||
|
||
}
|
||
}
|
||
#endregion
|
||
}
|
||
}
|