diff --git a/app/Services/Github/Mod/FreeNode.php b/app/Services/Github/Mod/FreeNode.php index d5c2b8b..e487b99 100755 --- a/app/Services/Github/Mod/FreeNode.php +++ b/app/Services/Github/Mod/FreeNode.php @@ -7,56 +7,6 @@ class FreeNode extends Base { public $aHuodong; // 必须,注入,没用了 public $aShip; - public function C($aArticle) - { - - if (!$this->todayUpd()) { - return false; - } - -$sContent = " - -# 公益免费v2ray节点订阅,每小时更新,最后更新时间:".date('Y-m-d H:i:s')." - -## 性价比机场推荐:[福云](https://fuuu.cloud) - -* 价格低 - 目前七折优惠,折后低至8元。 - -* 速度快 - 晚高峰看youtube高清不卡顿。 - -* 稳定 - 稳定运营二年多,海外团队。 - -".$this->aHuodong['str']." - -点击进入[福云机场官网](https://fuuu.cloud)。 - -## 免费节点订阅链接 - -v2ray订阅链接: - -https://clashfreenode.com/feed/v2ray-".date('Ymd').".txt - -clash订阅链接: - -https://clashfreenode.com/feed/clash-".date('Ymd').".yaml - -## 客户端下载 - -| 名称 | 操作系统 | 地址 | -|------|----------|------| -| SingBox | Mac/Linux/Android/Ios | [https://sing-box.sagernet.org/clients/](https://sing-box.sagernet.org/clients/) | -| FlClash | Mac/Linux/Windows/Android | [https://github.com/chen08209/FlClash](https://github.com/chen08209/FlClash) | -| Clash Verge | Mac/Linux/Windows | [https://github.com/clash-verge-rev/clash-verge-rev](https://github.com/clash-verge-rev/clash-verge-rev) | -| Clash Meta Android | Android | [https://github.com/MetaCubeX/ClashMetaForAndroid](https://github.com/MetaCubeX/ClashMetaForAndroid) | -| ClashX Meta | Mac | [https://github.com/MetaCubeX/ClashX.Meta](https://github.com/MetaCubeX/ClashX.Meta) | -| V2RayN | Windows | [https://github.com/2dust/v2rayN](https://github.com/2dust/v2rayN) | -| V2RayNG | Android | [https://github.com/2dust/v2rayNG](https://github.com/2dust/v2rayNG) | -| V2RayU | Mac | [https://github.com/yanue/V2rayU](https://github.com/yanue/V2rayU) | - -"; - return $sContent; - } - public function D($aArticle) { diff --git a/app/Services/TG/Hook/Mod/Article.php b/app/Services/TG/Hook/Mod/Article.php index 91306be..3976773 100644 --- a/app/Services/TG/Hook/Mod/Article.php +++ b/app/Services/TG/Hook/Mod/Article.php @@ -119,6 +119,42 @@ class Article extends Base { } + public function Json($aParam) + { + $iId = $aParam["aOption"][1] ?? false; + $sJson = $aParam["aArg"] ?? false; + + if (!$iId) { + return "需要id"; + } + + if (!$sJson) { + return "需要json"; + } + + $oArticle = ModelArticle::find($iId); + + if (!$oArticle) { + return "没到到这个"; + } + + $sJson = implode(" ", $sJson); + + $aJson = json_decode($sJson, true); + + foreach ($aJson as $k => $v) { + $oArticle->$k = $v; + } + + $oArticle->save(); + + $aParam["aArg"][1] = $oArticle->id; + return $this->Find($aParam); + +// return $this->toJson($oArticle); + + } + // /ArticleSet__id__user_name xxx public function Set($aParams) { @@ -136,8 +172,11 @@ class Article extends Base { // 处理未找到的情况 throw new \Exception("Article not found"); } + + $aParam["aArg"][1] = $article->id; + return $this->Find($aParam); - return $this->toJson($article); +// return $this->toJson($article); } diff --git a/just/tom无脑流程.text b/just/tom无脑流程.text index 8eabcdb..f270307 100644 --- a/just/tom无脑流程.text +++ b/just/tom无脑流程.text @@ -103,3 +103,5 @@ server { git config --global --add safe.directory /www/wwwroot/github-2.diaodu.us 可一次运行可能需要777权限 + +iphonevpn clash telegram nefilx vpn vless clashmeta vmess surge ssr