From 078151e8eeedf0406640f85bc04cd1fae289d5fc Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Sat, 19 Jul 2025 20:34:01 +0800 Subject: [PATCH] no message --- app/Http/Controllers/CronController.php | 2 +- app/Services/TG/Hook/Mod/Hub.php | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Controllers/CronController.php b/app/Http/Controllers/CronController.php index 105d4d9..ce66cb4 100755 --- a/app/Http/Controllers/CronController.php +++ b/app/Http/Controllers/CronController.php @@ -178,7 +178,7 @@ class CronController file_put_contents($this->sProjectPath."/README.md", $this->formatstr($sReadMe)); } - file_put_contents($this->sProjectPath."/version.text", time()); + file_put_contents($this->sProjectPath."/version.text", md5(time())); // 提交 if ($this->sSendTg == "n") { diff --git a/app/Services/TG/Hook/Mod/Hub.php b/app/Services/TG/Hook/Mod/Hub.php index e308ca8..9c584c5 100644 --- a/app/Services/TG/Hook/Mod/Hub.php +++ b/app/Services/TG/Hook/Mod/Hub.php @@ -29,6 +29,7 @@ class Hub extends Base { public function github($aParam) { +// $sWhereField = $aParam["aOption"] ?? $this-> $iId = $aParam["aArg"][1] ?? false; if (empty($aParam["aOption"]) && empty($aParam["aArg"])) { @@ -37,6 +38,8 @@ class Hub extends Base { $oArticle = ModelArticle::find($iId); + var_dump($oArticle);exit; + $this->oHttp->sToUrl = "https://api.github.com/repos/".$oArticle->user_name."/".$oArticle->project_name; $this->oHttp->sMetHod = "get"; $r = $this->oHttp->send();