no message
This commit is contained in:
parent
8a9d5b0c65
commit
31d6685f47
@ -4,9 +4,14 @@ namespace App\Http\Controllers\Api;
|
||||
|
||||
abstract class Controller
|
||||
{
|
||||
public $aData = [];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
// $this->sAppName = env('APP_NAME');
|
||||
// $this->sAppURL = 1;
|
||||
// $this->aData["sAppName"] = env('APP_NAME');
|
||||
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@ -78,7 +78,7 @@ class FreenodeController extends Controller
|
||||
{
|
||||
$sDateCode = date("Ymd");
|
||||
|
||||
/// test
|
||||
//// test
|
||||
// ArticleList::where("code", $sDateCode)->delete();
|
||||
//// test end
|
||||
|
||||
@ -96,9 +96,24 @@ class FreenodeController extends Controller
|
||||
|
||||
self::_delLast();
|
||||
|
||||
$this->mainHtmlRe();
|
||||
|
||||
return $sHtmlUrl;
|
||||
}
|
||||
|
||||
private function mainHtmlRe()
|
||||
{
|
||||
@unlink("index.html");
|
||||
|
||||
$ch = curl_init();
|
||||
curl_setopt($ch, CURLOPT_URL, env("APP_URL"));
|
||||
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
|
||||
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);
|
||||
|
||||
curl_exec($ch);
|
||||
}
|
||||
|
||||
private function _delLast()
|
||||
{
|
||||
$iLastTime = strtotime("+365 day"); // 这边保存1年
|
||||
|
||||
@ -4,9 +4,12 @@ namespace App\Http\Controllers\Article;
|
||||
|
||||
abstract class Controller
|
||||
{
|
||||
protected $aDataCommon = [];
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
// $this->sAppName = env('APP_NAME');
|
||||
// $this->sAppURL = 1;
|
||||
// $this->aDataCommon["wocao"] = 'wocaocao';
|
||||
}
|
||||
}
|
||||
|
||||
@ -105,6 +105,7 @@ class ListController extends Controller
|
||||
if ($row['type'] == 'node') {
|
||||
$row['typeStr'] = '免费节点';
|
||||
$row['pathBase'] = '/fn/';
|
||||
$row['title'] = '「'.$row['date_str'].'」'.$row['title'];
|
||||
} else if (in_array($row['type'], ['ios','mac','win','linux','android'])) {
|
||||
$row['typeStr'] = $row['type'].'客户端';
|
||||
$row['pathBase'] = '/client/';
|
||||
@ -124,7 +125,7 @@ class ListController extends Controller
|
||||
$sViewPath = 'article/list';
|
||||
}
|
||||
|
||||
return view($sViewPath, [
|
||||
$sHtml = view($sViewPath, [
|
||||
'sAppName' => env('APP_NAME'),
|
||||
'aList' => $aArticleList,
|
||||
'aTag' => @$aTagMap[$iTagId-1],
|
||||
@ -133,7 +134,11 @@ class ListController extends Controller
|
||||
'sType' => $sType,
|
||||
'sTypeSub' => $sTypeSub,
|
||||
// 'sSiteCode' => env('site_code'),
|
||||
]);
|
||||
])->render();
|
||||
|
||||
file_put_contents('index.html', $sHtml);
|
||||
|
||||
return $sHtml;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -17,24 +17,25 @@ class SingleController extends Controller
|
||||
protected $sType = '';
|
||||
protected $sCode = '';
|
||||
protected $aData = [];
|
||||
protected $aDataCommon = [];
|
||||
protected $sViewPath = 'article/single';
|
||||
|
||||
public function __construct()
|
||||
{
|
||||
|
||||
$this->oAntiXss = new AntiXSS();
|
||||
|
||||
parent::__construct();
|
||||
|
||||
}
|
||||
|
||||
protected function view()
|
||||
{
|
||||
|
||||
$this->aData['sType'] = $this->sType;
|
||||
|
||||
$this->aData['aTagNames'] = Tag::strToNames($this->aData['tags']);
|
||||
|
||||
return view($this->sViewPath, [
|
||||
"aData" => $this->aData,
|
||||
"aDataCommon" => $this->aDataCommon,
|
||||
"sMenu" => $this->aData['sMenu'],
|
||||
]);
|
||||
}
|
||||
@ -58,7 +59,7 @@ class SingleController extends Controller
|
||||
|
||||
$this->aData['pageTitle'] = $this->aData["title"];
|
||||
|
||||
$this->aData['pageKw'] = "Clash,Quantumult,Shadowrocket,SSR,v2ray,免费节点,节点,订阅链接";
|
||||
// $this->aData['pageKw'] = "Clash,Quantumult,Shadowrocket,SSR,v2ray,免费节点,节点,订阅链接";
|
||||
|
||||
return $this->view();
|
||||
}
|
||||
@ -82,12 +83,12 @@ class SingleController extends Controller
|
||||
|
||||
$this->aData['pageTitle'] = '「'.$this->aData['date_str'].'」'.$this->aData["title"];
|
||||
|
||||
$this->aData['pageKw'] = "Clash,Quantumult,Shadowrocket,SSR,v2ray,免费节点,节点,订阅链接";
|
||||
|
||||
// $this->aData['pageKw'] = "Clash,Quantumult,Shadowrocket,SSR,v2ray,免费节点,节点,订阅链接";
|
||||
|
||||
// $this->aData['v2rayPath'] = env('APP_URL')."/feed/v2ray-".$iCode.".txt";
|
||||
//
|
||||
// $this->aData['clashPath'] = env('APP_URL')."/feed/clash-".$iCode.".yaml";
|
||||
|
||||
|
||||
$aOption = Option::_all();
|
||||
$aOptionFreenodeClient = explode(",", $aOption["freenode_client"]);
|
||||
|
||||
|
||||
@ -2,6 +2,11 @@
|
||||
|
||||
return [
|
||||
|
||||
'siteTitle' => env('siteTitle'),
|
||||
'pageKw' => env('siteKw'),
|
||||
'pageKwSub' => env('siteKwSub'),
|
||||
'tg' => env('tg'),
|
||||
|
||||
/*
|
||||
|--------------------------------------------------------------------------
|
||||
| Application Name
|
||||
|
||||
553
public/index.html
Normal file
553
public/index.html
Normal file
File diff suppressed because one or more lines are too long
@ -8,10 +8,10 @@
|
||||
<meta charset="UTF-8" />
|
||||
<link data-optimized="2" rel="stylesheet" href="/wp-content/litespeed/css/7ae5cfd166f46888d19e7c59c38211b0.css%3Fver=93425.css" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<title>SSR/V2ray/Clash免费节点 - {{env('APP_NAME')}}</title>
|
||||
<title>{{ config('app.siteTitle') }} - {{ config('app.name') }}</title>
|
||||
<meta name="robots" content="max-image-preview:large" />
|
||||
<meta name="keywords" content="{{$sAppName}},免费节点,SSR,SS,shadowsocks,科学上网,翻墙,VPN" />
|
||||
<meta name="description" content="一个纯公益免费节点分享网站,提供免费节点订阅链接,服务覆盖SSR/V2ray//Vmess/Clash等主流协议,支持Trojan/v2ray/Clash/Shadowrocket/Quantumult等主流客户端" />
|
||||
<meta name="keywords" content="{{ config('app.name') }},{{ config('app.pageKw') }}" />
|
||||
<meta name="description" content="{{ config('app.siteTitle') }}" />
|
||||
<link rel="alternate" type="application/rss+xml" title="{{$sAppName}} » Feed" href="feed" />
|
||||
<link rel="alternate" type="application/rss+xml" title="{{$sAppName}} » 评论 Feed" href="comments/feed" />
|
||||
<style id="classic-theme-styles-inline-css" type="text/css">
|
||||
@ -42,10 +42,9 @@
|
||||
<script type="litespeed/javascript">
|
||||
window.$=jQuery
|
||||
</script>
|
||||
<script type="litespeed/javascript" data-src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8409622892164847" crossorigin="anonymous"></script>
|
||||
<!-- <script type="litespeed/javascript" data-src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8409622892164847" crossorigin="anonymous"></script> -->
|
||||
</head>
|
||||
|
||||
|
||||
<body class="home blog">
|
||||
@include("/widget/head")
|
||||
<main class="site-main">
|
||||
@ -125,6 +124,7 @@
|
||||
|
||||
<div id="featured_tags-2" class="widget card widget_nice_tag_cloud">
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@ -6,14 +6,14 @@
|
||||
<a
|
||||
class="media-content"
|
||||
href="{{$row['pathBase']}}{{$row['code']}}.html"
|
||||
title="「{{$row['date_str']}}」{{$row['title']}}"
|
||||
title="{{$row['title']}}"
|
||||
style="background-image:url('/site/{{env('site_code')}}/images/article/{{$row['img_id']}}.png')"
|
||||
></a>
|
||||
</div>
|
||||
<div class="list-content">
|
||||
<div class="list-body">
|
||||
<a href="{{$row['pathBase']}}{{$row['code']}}.html" title="「{{$row['date_str']}}」{{$row['title']}}" class="list-title h5 h-2x">
|
||||
「{{$row['created_at']}}」{{$row['title']}}
|
||||
<a href="{{$row['pathBase']}}{{$row['code']}}.html" title="{{$row['title']}}" class="list-title h5 h-2x">
|
||||
{{$row['title']}}
|
||||
</a>
|
||||
<div class="list-desc d-none d-xl-block text-secondary text-sm mt-2">
|
||||
<div class="h-2x">
|
||||
|
||||
@ -8,8 +8,8 @@
|
||||
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<title>{{$aData['pageTitle']}}</title>
|
||||
<meta name='robots' content='max-image-preview:large' />
|
||||
<meta name="keywords" content="{{$aData['pageKw']}}" />
|
||||
<meta name="description" content="{{$aData['title_sub']}}" />
|
||||
<meta name="keywords" content="{{ config('app.siteKw') }}" />
|
||||
<meta name="description" content="{{ $aData['title'] }}" />
|
||||
<link rel="stylesheet" href="/sakai/css/single.css">
|
||||
<link rel="icon" href="/site/{{env('site_code')}}/images/logo/icon.png" type="image/x-icon">
|
||||
<link rel="alternate" type="application/rss+xml" title="{{env('APP_NAME')}} » Feed" href="feed" />
|
||||
|
||||
@ -8,7 +8,7 @@
|
||||
content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<title>{{$aData['pageTitle']}}</title>
|
||||
<meta name='robots' content='max-image-preview:large' />
|
||||
<meta name="keywords" content="{{$aData['pageKw']}}" />
|
||||
<meta name="keywords" content="{{ config('app.name') }},{{ config('app.pageKw') }}" />
|
||||
<meta name="description" content="{{$aData['title_sub']}}" />
|
||||
<link rel="stylesheet" href="/sakai/css/single.css">
|
||||
<link rel="alternate" type="application/rss+xml" title="{{env('APP_NAME')}} » Feed" href="feed" />
|
||||
@ -48,6 +48,7 @@
|
||||
<script src="data:text/javascript;base64,d2luZG93LiQ9alF1ZXJ5" defer></script> <script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js?client=ca-pub-8409622892164847"
|
||||
crossorigin="anonymous"></script>
|
||||
</head>
|
||||
|
||||
<body class="post-template-default single single-post postid-3009 single-format-standard">
|
||||
@include("/widget/head")
|
||||
<main class="site-main">
|
||||
@ -81,6 +82,8 @@
|
||||
</div>
|
||||
<div class="post-content">
|
||||
|
||||
<p><b>加入tg频道获取更多新鲜免费节点:<a target="__blank" style="color:blue;" href="https://t.me/{{ config('app.tg') }}">t.me/{{ config('app.tg') }}</a>。</b></p>
|
||||
|
||||
{!! $aData['content'] !!}
|
||||
|
||||
{!! $aData['jichang']['text'] !!}
|
||||
@ -91,7 +94,7 @@
|
||||
</p>
|
||||
@endif
|
||||
|
||||
<p><a target="__blank" href="{{ $aData['jichang']['url'] }}" style="color:blue;">点击进入机场官网:{{ $aData["jichang"]["name"] }}</a></p>
|
||||
<p><b><a target="__blank" href="{{ $aData['jichang']['url'] }}" style="color:blue;">点击进入机场官网:{{ $aData["jichang"]["name"] }}</a></b></p>
|
||||
|
||||
<h2>免费节点订阅链接:</h2>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user