feat 人脸检测
This commit is contained in:
@@ -64,9 +64,6 @@ public class BalanceRecordCheckBackgroundService : BackgroundService
|
||||
await db.Client.Ado.BeginTranAsync();
|
||||
try
|
||||
{
|
||||
//设置为已同步
|
||||
balanceRecord.IsSync = true;
|
||||
await db.UpdateAsync(balanceRecord);
|
||||
var r = await UploadAsync(balanceRecord);
|
||||
if (r.Code != ApiStateCode.Success)
|
||||
{
|
||||
@@ -79,7 +76,11 @@ public class BalanceRecordCheckBackgroundService : BackgroundService
|
||||
.SetColumns(x => x.Balance == d.Balance)
|
||||
.Where(x => x.UserCode == d.UserCode)
|
||||
.ExecuteCommandAsync(stoppingToken);
|
||||
|
||||
|
||||
//eg:一定要在此处更新为已同步
|
||||
balanceRecord.IsSync = true;
|
||||
await db.UpdateAsync(balanceRecord);
|
||||
|
||||
await db.Client.Ado.CommitTranAsync();
|
||||
}
|
||||
catch (Exception e)
|
||||
|
||||
Reference in New Issue
Block a user