mirror of
https://github.com/YGGverse/Yo.git
synced 2026-04-02 18:55:30 +00:00
update http code even progress function fails
This commit is contained in:
parent
34fe26fcf9
commit
62149220b9
1 changed files with 11 additions and 0 deletions
|
|
@ -202,6 +202,17 @@ foreach($index->search('')
|
||||||
$upload,
|
$upload,
|
||||||
$uploaded
|
$uploaded
|
||||||
) {
|
) {
|
||||||
|
global $index;
|
||||||
|
global $document;
|
||||||
|
|
||||||
|
$index->updateDocument(
|
||||||
|
[
|
||||||
|
'time' => time(),
|
||||||
|
'code' => 200
|
||||||
|
],
|
||||||
|
$document->getId()
|
||||||
|
);
|
||||||
|
|
||||||
return $downloaded > CONFIG_CLI_DOCUMENT_CRAWL_CURL_DOWNLOAD_SIZE_MAX ? 1 : 0;
|
return $downloaded > CONFIG_CLI_DOCUMENT_CRAWL_CURL_DOWNLOAD_SIZE_MAX ? 1 : 0;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue