fix(manage): 注释掉智能巡检结束逻辑

- 注释掉了获取配置和调用停止检测接口的代码
- 避免因配置缺失或网络问题导致的任务异常终止
- 保留原有数据库事务提交逻辑不变
main
陈伟 2025-11-29 10:51:48 +08:00
parent 1e26cad9e7
commit 0b9645f03a
1 changed files with 2 additions and 2 deletions

View File

@ -2668,11 +2668,11 @@ namespace OpenAuth.App.ServiceApp
db.Ado.BeginTran();
await db.Updateable(task).IgnoreNullColumns().ExecuteCommandAsync();
db.Ado.CommitTran();
var config = ConfigHelper.GetConfigRoot();
/*var config = ConfigHelper.GetConfigRoot();
var url = config["AIModelApi:Url"];
// 结束智能巡检
using var httpClient = new HttpClient();
await httpClient.PostAsync($"{url}/stop_detection", null);
await httpClient.PostAsync($"{url}/stop_detection", null);*/
}
catch (Exception ex)
{