196 lines
5.2 KiB
C#
196 lines
5.2 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Configuration;
|
|
using System.Linq;
|
|
using System.Text;
|
|
using System.Threading.Tasks;
|
|
|
|
namespace ThirdPartyClient.Config
|
|
{
|
|
/// <summary>
|
|
/// 系统配置参数
|
|
/// </summary>
|
|
public class AppSettings
|
|
{
|
|
#region 需要对接数据的第三方门店
|
|
/// <summary>
|
|
/// 需要对接数据的第三方门店
|
|
/// </summary>
|
|
public static string ServerpartShopCode
|
|
{
|
|
get
|
|
{
|
|
if (ConfigurationManager.AppSettings["ServerpartShopCode"] == null)
|
|
{
|
|
return "";
|
|
}
|
|
else
|
|
{
|
|
return ConfigurationManager.AppSettings["ServerpartShopCode"];
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 需要对接数据的第三方门店(测试)
|
|
/// </summary>
|
|
public static string ServerpartShopCode_Test
|
|
{
|
|
get
|
|
{
|
|
if (ConfigurationManager.AppSettings["ServerpartShopCode_Test"] == null)
|
|
{
|
|
return "";
|
|
}
|
|
else
|
|
{
|
|
return ConfigurationManager.AppSettings["ServerpartShopCode_Test"];
|
|
}
|
|
|
|
}
|
|
}
|
|
#endregion
|
|
|
|
#region 老乡鸡业务相关参数
|
|
internal const string _LXJHostUrls_Test = "http://uat-store-center.lxjchina.com.cn/oc/owar";
|
|
/// <summary>
|
|
/// 老乡鸡测试环境业务请求地址:(对接联调测试)
|
|
/// </summary>
|
|
public static string LXJHostUrls_Test
|
|
{
|
|
get
|
|
{
|
|
if (ConfigurationManager.AppSettings["LXJHostUrls_Test"] == null)
|
|
{
|
|
return _LXJHostUrls_Test;
|
|
}
|
|
else
|
|
{
|
|
return ConfigurationManager.AppSettings["LXJHostUrls_Test"];
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
internal const string _LXJHostUrls_Pre = "http://uat-store-center.lxjchina.com.cn";
|
|
/// <summary>
|
|
/// 老乡鸡预发布环境业务请求地址:(预发布联调)
|
|
/// </summary>
|
|
public static string LXJHostUrls_Pre
|
|
{
|
|
get
|
|
{
|
|
if (ConfigurationManager.AppSettings["LXJHostUrls_Pre"] == null)
|
|
{
|
|
return _LXJHostUrls_Pre;
|
|
}
|
|
else
|
|
{
|
|
return ConfigurationManager.AppSettings["LXJHostUrls_Pre"];
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
internal const string _LXJHostUrls = "http://lxj-business-center.lxjchina.com.cn/oc/owar";
|
|
/// <summary>
|
|
/// 正式环境业务请求地址
|
|
/// </summary>
|
|
public static string LXJHostUrls
|
|
{
|
|
get
|
|
{
|
|
if (ConfigurationManager.AppSettings["LXJHostUrls"] == null)
|
|
{
|
|
return _LXJHostUrls;
|
|
}
|
|
else
|
|
{
|
|
return ConfigurationManager.AppSettings["LXJHostUrls"];
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
internal const string _LXJaccessKey = "ea34f89bec6092ff";
|
|
/// <summary>
|
|
/// 老乡鸡accessKey
|
|
/// </summary>
|
|
public static string LXJaccessKey
|
|
{
|
|
get
|
|
{
|
|
if (ConfigurationManager.AppSettings["LXJaccessKey"] == null)
|
|
{
|
|
return _LXJaccessKey;
|
|
}
|
|
else
|
|
{
|
|
return ConfigurationManager.AppSettings["LXJaccessKey"];
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
internal const string _LXJsecret = "2d408d041acd70948b5e9c6eab10092b";
|
|
/// <summary>
|
|
/// 老乡鸡secret
|
|
/// </summary>
|
|
public static string LXJsecret
|
|
{
|
|
get
|
|
{
|
|
if (ConfigurationManager.AppSettings["LXJsecret"] == null)
|
|
{
|
|
return _LXJsecret;
|
|
}
|
|
else
|
|
{
|
|
return ConfigurationManager.AppSettings["LXJsecret"];
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 老乡鸡门店代码
|
|
/// </summary>
|
|
public static string LXJExtStoreId
|
|
{
|
|
get
|
|
{
|
|
if (ConfigurationManager.AppSettings["ExtStoreId"] == null)
|
|
{
|
|
return "";
|
|
}
|
|
else
|
|
{
|
|
return ConfigurationManager.AppSettings["ExtStoreId"];
|
|
}
|
|
|
|
}
|
|
}
|
|
|
|
/// <summary>
|
|
/// 老乡鸡门店代码(测试)
|
|
/// </summary>
|
|
public static string LXJExtStoreId_Test
|
|
{
|
|
get
|
|
{
|
|
if (ConfigurationManager.AppSettings["ExtStoreId_Test"] == null)
|
|
{
|
|
return "";
|
|
}
|
|
else
|
|
{
|
|
return ConfigurationManager.AppSettings["ExtStoreId_Test"];
|
|
}
|
|
|
|
}
|
|
}
|
|
#endregion
|
|
}
|
|
}
|