2025-02-12 09:27:47 +08:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace SgManager.AI
|
|
|
|
|
{
|
|
|
|
|
public class ConfigAppSetting
|
|
|
|
|
{
|
|
|
|
|
public static double getConfigAppSetting(String name)
|
|
|
|
|
{
|
|
|
|
|
try
|
|
|
|
|
{
|
|
|
|
|
return Convert.ToDouble(System.Configuration.ConfigurationManager.AppSettings[name]);
|
|
|
|
|
}
|
2026-08-24 11:07:59 +08:00
|
|
|
catch (Exception)
|
2025-02-12 09:27:47 +08:00
|
|
|
{
|
|
|
|
|
return 0;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|