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