diff --git a/Application/Admin/Controller/AutoPackController.class.php b/Application/Admin/Controller/AutoPackController.class.php index 9ea3c3d4f..378551b4f 100644 --- a/Application/Admin/Controller/AutoPackController.class.php +++ b/Application/Admin/Controller/AutoPackController.class.php @@ -1083,6 +1083,7 @@ class AutoPackController extends Think public function clearPkg() { $client = new ToolOssClient(); $marker = ''; + $count = 0; do { $list = $client->listObjects('GamePack/', $marker, 100); $urls = []; @@ -1107,8 +1108,8 @@ class AutoPackController extends Think } $needDelUrls = array_unique(array_merge($needDelUrls, array_diff($urls, $packUrls))); - var_dump($needDelUrls); - + $count += count($needDelUrls); + if (empty($list->getNextMarker())) { break; } else {