no message

This commit is contained in:
hellcat 2025-12-31 16:28:36 +08:00
parent dbf4cc4c32
commit d32e10ba62
3 changed files with 37 additions and 1 deletions

View File

@ -36,6 +36,40 @@ final class FreenodeCrawl
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系
// ripaojiedian系stairnode本源
// 这个可能会没有,没有就不更新

View File

@ -10,7 +10,7 @@ use App\Services\TomTool\ThrowableHandler;
use App\Models\CrawlFreenode as ModelCrawlFreenode;
use App\Services\TomTool\HttpV2;
class CrawlFreenode extends Base {
class FreenodeFrom extends Base {
public function __construct($aUpdate)
{

View File

@ -17,6 +17,8 @@ cfn的env里加url_master_base
cfn的public里加sub文件夹
另外注意权限nginx一个权限php-fpm一个权限
ALTER TABLE `site_map`
ADD COLUMN `config` LONGTEXT
CHARACTER SET utf8mb4