|
|
@@ -101,10 +101,11 @@ class BatchService
|
|
|
// $ran=$this->stationTaskBatchService->runMany($stationTaskBatches);//执行波次任务
|
|
|
LogService::log(__METHOD__,'assignTasks','波次任务分配7:'.json_encode($batches));
|
|
|
}catch(Exception $e){
|
|
|
+ $batchesJson='';
|
|
|
foreach ($batches as $batch){
|
|
|
+ $batchesJson.=json_encode($batch);
|
|
|
Cache::tags(['波次防重叠'.$batch['id']])->flush();
|
|
|
}
|
|
|
- $batchesJson = (isEmpty($batches)||!is_array($batches))?'':json_encode($batches);
|
|
|
throw new ErrorException('注册任务失败: '. $batchesJson . $e->getMessage().$e->getTrace());
|
|
|
}
|
|
|
}
|