抽取数据添加协程逻辑调整
This commit is contained in:
@@ -26,7 +26,7 @@ func SyncAccountReportWithMock(ctx context.Context) error {
|
||||
},
|
||||
}
|
||||
|
||||
result, err := syncService.SyncAccountReport(ctx, req, true)
|
||||
result, err := syncService.SyncAccountReport(ctx, req, true, true)
|
||||
if err != nil {
|
||||
logrus.Errorf("同步失败:%v", err)
|
||||
return err
|
||||
@@ -39,7 +39,7 @@ func SyncAccountReportWithMock(ctx context.Context) error {
|
||||
func SyncAccountReportWithRealAPI(ctx context.Context, req *AccountReportRequest) error {
|
||||
syncService := NewSyncService()
|
||||
|
||||
result, err := syncService.SyncAccountReport(ctx, req, false)
|
||||
result, err := syncService.SyncAccountReport(ctx, req, false, true)
|
||||
if err != nil {
|
||||
logrus.Errorf("同步失败:%v", err)
|
||||
return err
|
||||
|
||||
Reference in New Issue
Block a user