|
|
|
@ -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;
|
|
|
|
|