There was an error while loading. Please reload this page.
1 parent b972d7b commit 04f78f3Copy full SHA for 04f78f3
1 file changed
inc/classes/bangumi.php
@@ -80,7 +80,7 @@ private function fetchCollections()
80
if ($total > count($dataList)) {
81
$pageLimit = 50;
82
$pages = (int)ceil($total / $pageLimit);
83
- // 避免有人追番太多,导致太多调用卡死,设定调用总次数上线(10次)
+ // 避免有人追番太多,导致太多调用卡死,设定调用总次数上限(10次)
84
$pages = min($pages, 10);
85
for ($i = 1; $i < $pages; $i++) {
86
$offset = $pageLimit * $i;
@@ -100,7 +100,7 @@ private function fetchCollections()
100
$collData['offset'] = 0;
101
$collData['total'] = $total;
102
103
- if ($bangumi_cache && isset($collData['data']) && is_array($collData['data'])) {
+ if ($bangumi_cache && !isset($collData['error']) && isset($collData['data']) && is_array($collData['data'])) {
104
auto_update_cache($cache_key, json_encode($collData));
105
}
106
0 commit comments