static string GetAppSetting(string key)
{
var appSetting = ConfigurationManager.AppSettings[key];
if (string.IsNullOrEmpty(appSetting))
{
return string.Format("未配置节点" + key);
}
return appSetting;
}
public static string JsonServiceUrl(string key)
{
return GetAppSetting(key);
}
//var url = Configurator.JsonServiceUrl("DownFile");
var apiMethodName = request.QueryString[apiMethodKey];
var apiBaseUrl = Configurator.GetConfigValue("memberDomain");
var apiUrl = string.Format(apiBaseUrl, apiMethodName);
标签:Web,return,string,appSetting,apiBaseUrl,获取,key,var,config
From: https://blog.51cto.com/u_14682436/7106015