fix
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 40s
Docker Build & Deploy / Deploy to Production (push) Has been skipped
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
Some checks failed
Docker Build & Deploy / Build Docker Image (push) Failing after 40s
Docker Build & Deploy / Deploy to Production (push) Has been skipped
Docker Build & Deploy / Cleanup Dangling Images (push) Successful in 1s
Docker Build & Deploy / WeChat Notification (push) Successful in 1s
This commit is contained in:
@@ -182,14 +182,21 @@ public class EmailHandleService(
|
||||
return;
|
||||
}
|
||||
|
||||
await AnalyzeClassifyAsync(clone);
|
||||
var analyzedList = await AnalyzeClassifyAsync(clone);
|
||||
|
||||
foreach (var record in records)
|
||||
foreach (var analyzed in analyzedList)
|
||||
{
|
||||
record.UnconfirmedClassify = record.Classify;
|
||||
record.UnconfirmedType = record.Type;
|
||||
|
||||
record.Classify = ""; // 重置为未分类,等待手动确认
|
||||
var record = records.FirstOrDefault(r => r.Id == analyzed.Id);
|
||||
|
||||
if (record == null)
|
||||
{
|
||||
continue;
|
||||
}
|
||||
|
||||
record.UnconfirmedClassify = analyzed.Classify;
|
||||
record.UnconfirmedType = analyzed.Type;
|
||||
|
||||
record.Classify = string.Empty;
|
||||
}
|
||||
|
||||
await trxRepo.UpdateRangeAsync(records);
|
||||
|
||||
Reference in New Issue
Block a user