优化错误展示

feature-flyModify
陈伟 2025-09-10 16:15:24 +08:00
parent b249456cf1
commit d67546072e
1 changed files with 2 additions and 2 deletions

View File

@ -780,7 +780,7 @@ public class ConfigSubscribe : IJob
var taskAssignRecord = new LasaTaskAssign()
{
Id = taskAssign.Id,
Reason = errorMsg,
Reason = $"{DateTime.Now:yyyy-MM-dd HH:mm:ss} {errorMsg}(错误码: {code}",
Status = 2
};
_sqlSugarClient.Updateable(taskAssignRecord).IgnoreNullColumns().ExecuteCommand();
@ -788,7 +788,7 @@ public class ConfigSubscribe : IJob
{
Id = taskAssign.TaskId,
Status = 2, // todo 状态待定
Reason = errorMsg //失败原因
Reason = $"{DateTime.Now:yyyy-MM-dd HH:mm:ss} {errorMsg}(错误码: {code}"
};
_sqlSugarClient.Updateable(taskUpdate).IgnoreNullColumns().ExecuteCommand();
}