|
|
@ -1086,13 +1086,15 @@ class AutoPackController extends Think
|
|
|
|
do {
|
|
|
|
do {
|
|
|
|
$list = $client->listObjects('GamePack/', $marker, 100);
|
|
|
|
$list = $client->listObjects('GamePack/', $marker, 100);
|
|
|
|
$urls = [];
|
|
|
|
$urls = [];
|
|
|
|
|
|
|
|
$queryUrls = [];
|
|
|
|
foreach ($list->getObjectList() as $obj) {
|
|
|
|
foreach ($list->getObjectList() as $obj) {
|
|
|
|
$urls[] = '"https://qy-plat.oss-cn-hangzhou.aliyuncs.com/' . $obj->getKey() . '"';
|
|
|
|
$urls[] = 'https://qy-plat.oss-cn-hangzhou.aliyuncs.com/' . $obj->getKey();
|
|
|
|
|
|
|
|
$queryUrls[] = '"https://qy-plat.oss-cn-hangzhou.aliyuncs.com/' . $obj->getKey() . '"';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
if (empty($urls)) {
|
|
|
|
if (empty($queryUrls)) {
|
|
|
|
break;
|
|
|
|
break;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
$urlsStr = implode(",", $urls);
|
|
|
|
$urlsStr = implode(",", $queryUrls);
|
|
|
|
|
|
|
|
|
|
|
|
$rows = M("apply", 'tab_')->field('pack_url, game_id')->where("pack_url in ({$urlsStr})")->find();
|
|
|
|
$rows = M("apply", 'tab_')->field('pack_url, game_id')->where("pack_url in ({$urlsStr})")->find();
|
|
|
|
$packUrls = [];
|
|
|
|
$packUrls = [];
|
|
|
|