master
handefeng 6 months ago
parent bef0748728
commit ab7bd02bfa
  1. 2
      App.config
  2. 3
      Model/Services/AlgorithmServer.cs
  3. 1
      Model/Services/SOCClientService.cs

@ -2,7 +2,7 @@
<configuration>
<appSettings>
<!-- 切工仪URL -->
<!-- <add key="BaseUrl" value="http://localhost:5000/api/SoC"/> -->
<!-- <add key="BaseUrl" value="http://192.168.10.185:5000/api/SoC"/> -->
<add key="BaseUrl" value="http://192.168.3.100:8080"/>
<!-- SOC下载图片目录 -->
<add key="ImageFileBasePath" value="D:\diamond_images"/>

@ -186,7 +186,6 @@ namespace SparkClient.Model.Services
// 记录算法失败的错误信息
Logger.Info($"Algorithm failed with errorMsg: {result.error_msg}");
// 处理 C++ DLL 日志文件
//ProcessDllLog();
// 算法调用失败时,保存图片到历史记录文件夹
// if (result.status == StatusCodes.AlgorithmFailed)
// {
@ -239,7 +238,7 @@ namespace SparkClient.Model.Services
// 检查 D 盘内存空间
DriveInfo dDrive = new DriveInfo("D");
long requiredSpace = 1000L * 1024 * 1024 * 1024; // 10GB
long requiredSpace = 10L * 1024 * 1024 * 1024; // 10GB
if (dDrive.TotalFreeSpace < requiredSpace)
{
// 如果 D 盘空间不足 10GB,删除最早创建的10个文件夹

@ -40,7 +40,6 @@ namespace SparkClient.Model.Services
/// </summary>
public SOCClientService()
{
//_baseUrl = "http://192.168.3.100:8080";
_baseUrl = ConfigurationManager.AppSettings["BaseUrl"];
_authToken = "your_basic_auth_token";
}

Loading…
Cancel
Save