|
|
|
@ -1086,13 +1086,15 @@ class AutoPackController extends Think
|
|
|
|
|
do {
|
|
|
|
|
$list = $client->listObjects('GamePack/', $marker, 100);
|
|
|
|
|
$urls = [];
|
|
|
|
|
$queryUrls = [];
|
|
|
|
|
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;
|
|
|
|
|
}
|
|
|
|
|
$urlsStr = implode(",", $urls);
|
|
|
|
|
$urlsStr = implode(",", $queryUrls);
|
|
|
|
|
|
|
|
|
|
$rows = M("apply", 'tab_')->field('pack_url, game_id')->where("pack_url in ({$urlsStr})")->find();
|
|
|
|
|
$packUrls = [];
|
|
|
|
|