### MyHouse V1.0.2502.0801 - *.[新增]适配新版接口。 ### SmartHouseAPI V1.0.2502.0801 - *.[新增]支持Docker部署,支持NAS。
41 lines
1.6 KiB
C#
41 lines
1.6 KiB
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Linq;
|
|
using System.Text;
|
|
|
|
namespace MyHouse
|
|
{
|
|
/// <summary>
|
|
/// 配置类,保存在文件中的配置信息(本系统基于乘黄V2架构)
|
|
/// </summary>
|
|
public static class Public_Config
|
|
{
|
|
/// <summary>
|
|
/// 在点击主窗口关闭按钮时,隐藏窗体(只有开启了托盘图标,本功能才能生效,此时需要通过托盘图标进行关闭)。
|
|
/// </summary>
|
|
public static bool HideByCloseBtn = false;
|
|
public static RyWeb.QuickWeb ry_api = new RyWeb.QuickWeb();
|
|
public static string Cookie { get; set; } = "";
|
|
//public static string Api_Url { get; set; } = "http://localhost:10002/";
|
|
public static string Api_Url { get; set; } = "http://55x.top:18888/";
|
|
/// <summary>
|
|
/// 可直接访问的网址
|
|
/// </summary>
|
|
public static string WebDav_VistorUrl = "http://lfx2.top:999/MyHouse/Images";
|
|
/// <summary>
|
|
/// 需要账号密码访问的网址
|
|
/// </summary>
|
|
public static string WebDav_Url = "http://lfx2.top:5007/WebDav/MyHouse/Images";
|
|
public static string WebDav_UserId = "admin";
|
|
public static string WebDav_Pwd = "LIFENGXIN120120";
|
|
public static void LoadSetting()
|
|
{
|
|
ryCommon.Storage Stor = new ryCommon.Storage();
|
|
Stor.LoadFromFile(Soft_ConstInfo.UserDataFolder+"\\Setting.dat");
|
|
Stor.SelectNodeBySet();
|
|
HideByCloseBtn = Stor.GetAttrValue("HideByCloseBtn", false);
|
|
//low_count = Stor.GetAttrValue("LowCount", 10);
|
|
}
|
|
}
|
|
}
|