no message
This commit is contained in:
parent
631bbfcb01
commit
812d9ee3d1
@ -9,21 +9,22 @@ class Github {
|
|||||||
{
|
{
|
||||||
list($sClassDir, $sClass) = explode('#', $aArticle['mod']);
|
list($sClassDir, $sClass) = explode('#', $aArticle['mod']);
|
||||||
|
|
||||||
$sClass = "App\\Services\\Github\\Mod\\".$sClass;
|
// $sClass = "App\\Services\\Github\\Mod\\".$sClass;
|
||||||
$sClass = "App\\Services\\Github\\Mod\\".$sClassDir."\\".$sClass;
|
$sClass = "App\\Services\\Github\\Mod\\".$sClassDir."\\".$sClass;
|
||||||
|
|
||||||
$sFunc = "Get";
|
$sFunc = "Get";
|
||||||
|
|
||||||
if (method_exists($sClass, $sFunc)) {
|
if (method_exists($sClass, $sFunc)) {
|
||||||
|
// tomd($sClass, 1);
|
||||||
$oInstans = new $sClass();
|
$oInstans = new $sClass();
|
||||||
// $oInstans->aHuodong = self::GetHuodong($aArticle);
|
// $oInstans->aHuodong = self::GetHuodong($aArticle);
|
||||||
$oInstans->aShip = self::GetShip($aArticle);
|
$oInstans->aShip = self::GetShip($aArticle);
|
||||||
$sReadMe = $oInstans->$sFunc($aArticle);
|
$sReadMe = $oInstans->$sFunc($aArticle);
|
||||||
return $sReadMe;
|
return $sReadMe;
|
||||||
} else {
|
} else {
|
||||||
// 处理方法不存在的情况(可选)
|
// 模版里可以返回false,但不能没有模版
|
||||||
// $this->tgMessage("Method $sClass does not exist.");
|
throw new \Exception("没找到这个模版:".$sClass."\\".$sFunc);
|
||||||
return false;
|
// return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -7,60 +7,6 @@ class FreeNode extends Base {
|
|||||||
public $aHuodong; // 必须,注入,没用了
|
public $aHuodong; // 必须,注入,没用了
|
||||||
public $aShip;
|
public $aShip;
|
||||||
|
|
||||||
public function A($aArticle)
|
|
||||||
{
|
|
||||||
|
|
||||||
// tomd($this->aShip, 1);
|
|
||||||
|
|
||||||
if (!$this->todayUpd()) {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
$aArticleFreenode = $this->getArticleFreenode();
|
|
||||||
|
|
||||||
$sContent = "
|
|
||||||
|
|
||||||
# 「".date("m月d日")."」每日更新免费节点,SSR/V2ray/Clash/Shadowrocket免费节点订阅链接。
|
|
||||||
|
|
||||||
".date("Y年m月d日").",".$aArticleFreenode['title_sub']."
|
|
||||||
|
|
||||||
## 性价比机场推荐:[".$this->aShip["name"]."](https://".$this->aShip["www"].")
|
|
||||||
|
|
||||||
* 价格低 - 目前七折优惠,折后低至8元。
|
|
||||||
|
|
||||||
* 速度快 - 晚高峰看youtube高清不卡顿。
|
|
||||||
|
|
||||||
* 稳定 - 海外团队稳定运营第3年。
|
|
||||||
|
|
||||||
* 无限试用 - 注册免费试用3天,签到无限试用。
|
|
||||||
|
|
||||||
".$this->aShip['youhui_str']."
|
|
||||||
|
|
||||||
点击进入[".$this->aShip["name"]."机场官网](https://".$this->aShip["www"].")。
|
|
||||||
|
|
||||||
## 免费节点订阅链接
|
|
||||||
|
|
||||||
v2ray订阅链接:
|
|
||||||
|
|
||||||
https://".$aArticle["fn_www"]."/feed/v2ray-".date('Ymd').".txt
|
|
||||||
|
|
||||||
clash订阅链接:
|
|
||||||
|
|
||||||
https://".$aArticle["fn_www"]."/feed/clash-".date('Ymd').".yaml
|
|
||||||
|
|
||||||
## 温馨提示
|
|
||||||
|
|
||||||
本站提供的都是免费且公益的节点,稳定性与长时间连接速率无法与收费版的高速机场节点相提并论,不能奢望太多。
|
|
||||||
|
|
||||||
注意你自己的网络环境(本地连接当中的DNS,手动配置一下:114.114.114.114,8.8.8.8或是其它公共的DNS。)
|
|
||||||
|
|
||||||
如果某个网址无法代理访问,可切换到全局代理模式,一般可解决。
|
|
||||||
|
|
||||||
";
|
|
||||||
|
|
||||||
return $sContent;
|
|
||||||
|
|
||||||
}
|
|
||||||
|
|
||||||
public function B($aArticle)
|
public function B($aArticle)
|
||||||
{
|
{
|
||||||
|
|||||||
@ -1,17 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
namespace App\Services\Github\Mod;
|
namespace App\Services\Github\Mod\FreeNode;
|
||||||
|
|
||||||
|
use App\Services\Github\Mod\base;
|
||||||
use App\Services\TomTool\Http;
|
use App\Services\TomTool\Http;
|
||||||
|
|
||||||
class FreeNode extends Base {
|
class A extends Base {
|
||||||
|
|
||||||
// public $aHuodong; // 必须,注入,没用了
|
|
||||||
public $aShip; // 必须,注入
|
public $aShip; // 必须,注入
|
||||||
|
|
||||||
public function A($aArticle)
|
public function Get($aArticle)
|
||||||
{
|
{
|
||||||
|
|
||||||
// tomd($this->aShip, 1);
|
|
||||||
|
|
||||||
if (!$this->todayUpd()) {
|
if (!$this->todayUpd()) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user