master
elf 4 months ago
parent 8d1aabf8a2
commit 29efef8fe6

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

Loading…
Cancel
Save