|
|
@ -152,7 +152,6 @@ namespace TaskManager.Controllers |
|
|
|
var content = await Post(Url, Path, inputjson,taskId,version); |
|
|
|
if (!string.IsNullOrEmpty(content)) |
|
|
|
{ |
|
|
|
|
|
|
|
var options = new JsonSerializerOptions |
|
|
|
{ |
|
|
|
PropertyNamingPolicy = JsonNamingPolicy.CamelCase, |
|
|
@ -174,10 +173,7 @@ namespace TaskManager.Controllers |
|
|
|
await _logger.AddError($"调用接口无返回值错误{ex.Message}", TaskName,taskId,version); |
|
|
|
return null; |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static string GenerateRandomStringWith8EG() |
|
|
|
{ |
|
|
|
const string chars = "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789"; |
|
|
@ -266,10 +262,14 @@ namespace TaskManager.Controllers |
|
|
|
{ |
|
|
|
TLOGS log = new TLOGS(); |
|
|
|
log.InjectFrom(itm); |
|
|
|
log.RequestDate = requestDate; |
|
|
|
log.TaskId = taskId; |
|
|
|
|
|
|
|
log.WriteState = true; |
|
|
|
log.ReadState = true; |
|
|
|
logs.Add(log); |
|
|
|
} |
|
|
|
await _jobDbContext.BulkInsertAsync(logs); |
|
|
|
|
|
|
|
try |
|
|
|
{ |
|
|
|
var createtask = new TaskSub(); |
|
|
@ -285,6 +285,8 @@ namespace TaskManager.Controllers |
|
|
|
createtask.CreateUser = "admin"; |
|
|
|
createtask.CreationTime = DateTime.Now; |
|
|
|
createtask.SyncedPageCount = i; |
|
|
|
createtask.ReadState = true; |
|
|
|
createtask.WriteState = true; |
|
|
|
await _jobDbContext.AddAsync(task); |
|
|
|
// 提交事务
|
|
|
|
await transaction.CommitAsync(); |
|
|
|