no message
This commit is contained in:
parent
dbf4cc4c32
commit
d32e10ba62
@ -36,6 +36,40 @@ final class FreenodeCrawl
|
|||||||
return $aFileContent;
|
return $aFileContent;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// 通用系,有就拿,没有就不拿,暂时没有date
|
||||||
|
private static function getFile__common($aFrom)
|
||||||
|
{
|
||||||
|
$aFileContent = [];
|
||||||
|
|
||||||
|
foreach ($aFrom["url_file"] as $k => $v) {
|
||||||
|
|
||||||
|
$sFileName = $v;
|
||||||
|
|
||||||
|
$sUrlSend = "https://".$aFrom["url_base"].$aFrom["url_node"].$sFileName;
|
||||||
|
|
||||||
|
$sFileContent = self::curl($sUrlSend) ?? "";
|
||||||
|
|
||||||
|
if (!$sFileContent) {
|
||||||
|
return [];
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($k == "v2ray") {
|
||||||
|
$sFileContent = base64_decode($sFileContent);
|
||||||
|
}
|
||||||
|
|
||||||
|
if ($sFileContent) {
|
||||||
|
$aFileContent[] = [
|
||||||
|
"type" => $k,
|
||||||
|
"file_name" => $sFileName,
|
||||||
|
"file_content" => $sFileContent
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
return $aFileContent;
|
||||||
|
}
|
||||||
|
|
||||||
// stairnode系
|
// stairnode系
|
||||||
// ripaojiedian系,stairnode本源
|
// ripaojiedian系,stairnode本源
|
||||||
// 这个可能会没有,没有就不更新
|
// 这个可能会没有,没有就不更新
|
||||||
|
|||||||
@ -10,7 +10,7 @@ use App\Services\TomTool\ThrowableHandler;
|
|||||||
use App\Models\CrawlFreenode as ModelCrawlFreenode;
|
use App\Models\CrawlFreenode as ModelCrawlFreenode;
|
||||||
use App\Services\TomTool\HttpV2;
|
use App\Services\TomTool\HttpV2;
|
||||||
|
|
||||||
class CrawlFreenode extends Base {
|
class FreenodeFrom extends Base {
|
||||||
|
|
||||||
public function __construct($aUpdate)
|
public function __construct($aUpdate)
|
||||||
{
|
{
|
||||||
Loading…
Reference in New Issue
Block a user