using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace ThirdPartyClient.Config
{
///
/// 系统配置参数
///
public class AppSettings
{
#region 需要对接数据的第三方门店
///
/// 需要对接数据的第三方门店
///
public static string ServerpartShopCode
{
get
{
if (ConfigurationManager.AppSettings["ServerpartShopCode"] == null)
{
return "";
}
else
{
return ConfigurationManager.AppSettings["ServerpartShopCode"];
}
}
}
///
/// 需要对接数据的第三方门店(测试)
///
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";
///
/// 老乡鸡测试环境业务请求地址:(对接联调测试)
///
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";
///
/// 老乡鸡预发布环境业务请求地址:(预发布联调)
///
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";
///
/// 正式环境业务请求地址
///
public static string LXJHostUrls
{
get
{
if (ConfigurationManager.AppSettings["LXJHostUrls"] == null)
{
return _LXJHostUrls;
}
else
{
return ConfigurationManager.AppSettings["LXJHostUrls"];
}
}
}
internal const string _LXJaccessKey = "ea34f89bec6092ff";
///
/// 老乡鸡accessKey
///
public static string LXJaccessKey
{
get
{
if (ConfigurationManager.AppSettings["LXJaccessKey"] == null)
{
return _LXJaccessKey;
}
else
{
return ConfigurationManager.AppSettings["LXJaccessKey"];
}
}
}
internal const string _LXJsecret = "2d408d041acd70948b5e9c6eab10092b";
///
/// 老乡鸡secret
///
public static string LXJsecret
{
get
{
if (ConfigurationManager.AppSettings["LXJsecret"] == null)
{
return _LXJsecret;
}
else
{
return ConfigurationManager.AppSettings["LXJsecret"];
}
}
}
///
/// 老乡鸡门店代码
///
public static string LXJExtStoreId
{
get
{
if (ConfigurationManager.AppSettings["ExtStoreId"] == null)
{
return "";
}
else
{
return ConfigurationManager.AppSettings["ExtStoreId"];
}
}
}
///
/// 老乡鸡门店代码(测试)
///
public static string LXJExtStoreId_Test
{
get
{
if (ConfigurationManager.AppSettings["ExtStoreId_Test"] == null)
{
return "";
}
else
{
return ConfigurationManager.AppSettings["ExtStoreId_Test"];
}
}
}
#endregion
}
}