no message

This commit is contained in:
hellcat 2025-07-07 14:38:45 +08:00
parent f8d1c0ed66
commit d72da0a1b7

View File

@ -23,9 +23,13 @@ class Dog extends Base {
$aGitHub = json_decode($r, true);
$tmp = str_replace("T", " ", rtrim($aGitHub["updated_at"], "Z")); //updated_at, pushed_at
$tmp = strtotime($tmp);
$tmpDate = date("Y-m-d H:i:s", $tmp + (8 * 3600));
$aGitHubNew = [];
$aGitHubNew["⭐️星星"] = $aGitHub["stargazers_count"];
$aGitHubNew["♻️最后更新"] = str_replace("T", " ", rtrim($aGitHub["pushed_at"], "Z")); // 替换T为空格并去掉Z
$aGitHubNew["♻️最后更新"] = $tmpDate; // 替换T为空格并去掉Z
$aGitHubNew["watchers"] = $aGitHub["watchers_count"];
$aGitHubNew["forks"] = $aGitHub["forks_count"];
$aGitHubNew["watchers"] = $aGitHub["watchers_count"];