fix(manage): 注释掉智能巡检结束逻辑
- 注释掉了获取配置和调用停止检测接口的代码 - 避免因配置缺失或网络问题导致的任务异常终止 - 保留原有数据库事务提交逻辑不变main
parent
1e26cad9e7
commit
0b9645f03a
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue