|
|
@@ -60,7 +60,7 @@ class DeliveryService
|
|
|
*/
|
|
|
public function customProcessing(array $items): array
|
|
|
{
|
|
|
- foreach ($items as $key => $item) {
|
|
|
+ foreach ($items as $key => &$item) {
|
|
|
if ($item['is_process'] == true) continue;
|
|
|
switch ($item['component_type']) {
|
|
|
case 'TB':
|
|
|
@@ -97,5 +97,16 @@ class DeliveryService
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ public function pushClearCache($path)
|
|
|
+ {
|
|
|
+ if (!Cache::has("print-template-file-list")){
|
|
|
+ Cache::put('print-template-file-list',[$path]);
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $arr = Cache::get("print-template-file-list");
|
|
|
+ $arr[] = $path;
|
|
|
+ Cache::put('print-template-file-list',$arr);
|
|
|
+ }
|
|
|
+
|
|
|
|
|
|
}
|