From 4fcf7724b64f592ebc291d45766d7a83466bf928 Mon Sep 17 00:00:00 2001 From: elf <360197197@qq.com> Date: Mon, 8 Jul 2024 01:03:07 +0800 Subject: [PATCH] yh --- .../Controller/AutoPackController.class.php | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/Application/Admin/Controller/AutoPackController.class.php b/Application/Admin/Controller/AutoPackController.class.php index a53f4dd53..c324cfde8 100644 --- a/Application/Admin/Controller/AutoPackController.class.php +++ b/Application/Admin/Controller/AutoPackController.class.php @@ -1107,17 +1107,30 @@ class AutoPackController extends Think } } - $needDelUrls = array_unique(array_merge($needDelUrls, array_diff($urls, $packUrls))); + echo 'needDel1: ' . count($needDelUrls); + echo PHP_EOL; + + $diffUrls = array_diff($urls, $packUrls); + echo 'diffUrls: ' . count($diffUrls); + echo PHP_EOL; + + $needDelUrls = array_unique(array_merge($needDelUrls, $diffUrls)); + + echo 'needDel2: ' . count($needDelUrls); + echo PHP_EOL; + $count += count($needDelUrls); if (empty($list->getNextMarker())) { break; } else { $marker = $list->getNextMarker(); + echo 'next: ' . $marker; + echo PHP_EOL; } } while (true); - echo $count; + echo 'total:' . $count; echo PHP_EOL; } }