master
elf 4 months ago
parent 29efef8fe6
commit 39e7a3341c

@ -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,7 +1108,7 @@ 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;

Loading…
Cancel
Save