diff --git a/app/Services/TG/Hook/Mod/Dog.php b/app/Services/TG/Hook/Mod/Dog.php index d8cb010..ffe285d 100644 --- a/app/Services/TG/Hook/Mod/Dog.php +++ b/app/Services/TG/Hook/Mod/Dog.php @@ -23,11 +23,16 @@ class Dog extends Base { $aGitHub = json_decode($r, true); - return $this->toJson($aGitHub); + $aGitHubNew = []; + $aGitHubNew["⭐️星星"] = $aGitHub["stargazers_count"]; + $aGitHubNew["♻️最后更新"] = str_replace("T", " ", rtrim($aGitHub["pushed_at"], "Z")); // 替换T为空格并去掉Z + $aGitHubNew["watchers"] = $aGitHub["watchers_count"]; + $aGitHubNew["forks"] = $aGitHub["forks_count"]; + $aGitHubNew["watchers"] = $aGitHub["watchers_count"]; + $aGitHubNew["url"] = $aGitHub["html_url"]; + + return $this->toJson($aGitHubNew); -// tomd($aGitHub, 1); -// tomd($this->oHttp->sToUrl); -// tomd($r, 1); } public function List($aParam)