Compare commits
2 Commits
8a35d99ccb
...
bc90dca578
| Author | SHA1 | Date |
|---|---|---|
|
|
bc90dca578 | |
|
|
18880d436d |
|
|
@ -2535,11 +2535,11 @@ namespace OpenAuth.App.ServiceApp
|
|||
{
|
||||
db.Ado.BeginTran();
|
||||
await db.Updateable(task).IgnoreNullColumns().ExecuteCommandAsync();
|
||||
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);*/
|
||||
db.Ado.CommitTran();
|
||||
}
|
||||
catch (Exception ex)
|
||||
|
|
|
|||
|
|
@ -306,8 +306,8 @@ namespace OpenAuth.WebApi.Controllers.ServiceControllers
|
|||
var result = new ReciveData<string>();
|
||||
if (Request.Headers.TryGetValue("x-lc-token", out var tokenValue))
|
||||
{
|
||||
//var tokenflag = _helper.Verify(tokenValue);
|
||||
var tokenflag = true;
|
||||
var tokenflag = _helper.Verify(tokenValue);
|
||||
//var tokenflag = true;
|
||||
if (tokenflag)
|
||||
{
|
||||
try
|
||||
|
|
|
|||
Loading…
Reference in New Issue