✨ feat(*): 添加管理员解锁与 SFTP 探活能力
* 新增管理员解锁弹窗、手动操作权限控制与倒计时状态 * 支持系统设置页测试 SFTP 连接,并在启动时执行探活 * 补充设计时服务、全局异常兜底与相关单元测试
This commit is contained in:
@@ -40,6 +40,7 @@ public sealed class DesignTimeAppConfigService : IAppConfigService
|
||||
_config.Sftp = config.Sftp;
|
||||
_config.Andon = config.Andon;
|
||||
_config.Workflow = config.Workflow;
|
||||
_config.Security = config.Security;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
@@ -98,11 +99,13 @@ public sealed class DesignTimeAppConfigService : IAppConfigService
|
||||
Andon = new AndonOptions
|
||||
{
|
||||
Enable = true,
|
||||
Url = "http://10.10.20.50/api/andon/alarm",
|
||||
Url = "https://shp.prod.aliyun.mit.uaes.com/api/mit/MAE/Station/Status/alarm",
|
||||
Method = "POST",
|
||||
TimeoutMs = 3000,
|
||||
StationCode = "OMRON-L01",
|
||||
StationName = "欧姆龙 PCB 检测",
|
||||
AndonTheme = "SS7_Auto_Andon",
|
||||
Eid = "PR1965269806334783488",
|
||||
FromSign = "IOT",
|
||||
ServiceId = "4dccd822-86b2-47dd-89bd-ca472ba0d14d",
|
||||
EnableScanFailAlarm = true,
|
||||
EnableFileNotFoundAlarm = true
|
||||
},
|
||||
@@ -114,6 +117,11 @@ public sealed class DesignTimeAppConfigService : IAppConfigService
|
||||
RequireManualResetAfterFault = true,
|
||||
MaxUiLogEntries = 200,
|
||||
MaxBoardRecords = 100
|
||||
},
|
||||
Security = new SecurityOptions
|
||||
{
|
||||
AdminPassword = "AxiOmron@123",
|
||||
AdminSessionTimeoutMinutes = 15
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user