master
elf 4 months ago
parent 8d1aabf8a2
commit 29efef8fe6

@ -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 = [];

Loading…
Cancel
Save