public static string GetAppSetting(string key) { string value = ConfigurationManager.AppSettings.Get(key); if (value == null) { //TODO,记录日志 value = ""; } return value; }