master
elf 4 months ago
parent 29efef8fe6
commit 39e7a3341c

@ -1083,6 +1083,7 @@ class AutoPackController extends Think
public function clearPkg() { public function clearPkg() {
$client = new ToolOssClient(); $client = new ToolOssClient();
$marker = ''; $marker = '';
$count = 0;
do { do {
$list = $client->listObjects('GamePack/', $marker, 100); $list = $client->listObjects('GamePack/', $marker, 100);
$urls = []; $urls = [];
@ -1107,7 +1108,7 @@ class AutoPackController extends Think
} }
$needDelUrls = array_unique(array_merge($needDelUrls, array_diff($urls, $packUrls))); $needDelUrls = array_unique(array_merge($needDelUrls, array_diff($urls, $packUrls)));
var_dump($needDelUrls); $count += count($needDelUrls);
if (empty($list->getNextMarker())) { if (empty($list->getNextMarker())) {
break; break;

Loading…
Cancel
Save