master
nodyang@aliyun.com 2 months ago
parent ebf224d565
commit f7a00451ec

@ -20,7 +20,7 @@ namespace SlnMesnac.TouchSocket
IBaseLogService _baseLogService;
public Action<ScanLogSocket>? ScanLogSocketAction;
public Action<ScanLogModel>? ScanLogSocketAction;
public Action<ScanStatusSocket>? ScanStatusSocketAction;
@ -94,8 +94,7 @@ namespace SlnMesnac.TouchSocket
log.Content = scanLogStatus.ToJsonString();
try
{
ScanLogSocketAction?.Invoke(scanLogStatus);
_scanService.Insert(new ScanLogModel()
var model = new ScanLogModel()
{
CreateTime = scanLogStatus.CreateTime,
DataType = scanLogStatus.data_type,
@ -104,7 +103,10 @@ namespace SlnMesnac.TouchSocket
Ocr = scanLogStatus.ocr,
Url = scanLogStatus.url
});
};
ScanLogSocketAction?.Invoke(model);
_scanService.Insert(model);
}
catch (Exception e)

Loading…
Cancel
Save