Base.cs 1.3 KB

123456789101112131415161718192021222324252627
  1. using System.Collections.Generic;
  2. using Library;
  3. namespace AppConfig
  4. {
  5. public class Base
  6. {
  7. public static string ApiKey = "G6H7@J8%";
  8. public static string Host = Library.ConfigurationManager.AppSettings["Host"].ToString();
  9. public static string OssHost = Library.ConfigurationManager.AppSettings["OssHost"].ToString();
  10. public static string Database = Library.ConfigurationManager.AppSettings["Database"].ToString();
  11. public static string defaultImage = Library.ConfigurationManager.AppSettings["Host"].ToString() + "/skin/app/default/static/images/default.jpg";
  12. public static string SqlConnStr = Library.ConfigurationManager.AppSettings["SqlConnStr"].ToString();
  13. //好哒FTP
  14. public static string HaoDaFtpHost = Library.ConfigurationManager.AppSettings["HaoDaFtpHost"].ToString();
  15. public static string HaoDaFtpLoginName = Library.ConfigurationManager.AppSettings["HaoDaFtpLoginName"].ToString();
  16. public static string HaoDaFtpLoginPwd = Library.ConfigurationManager.AppSettings["HaoDaFtpLoginPwd"].ToString();
  17. #region 数据库结构
  18. public static Dictionary<string, Dictionary<string, string>> mainTables = new Dictionary<string, Dictionary<string, string>>();
  19. #endregion
  20. }
  21. }