no message

This commit is contained in:
hellcat 2025-07-07 14:44:05 +08:00
parent d72da0a1b7
commit 4d2d2963a0
2 changed files with 6 additions and 1 deletions

View File

@ -45,4 +45,9 @@ class Base {
return json_encode($aData, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT);
}
public function urlFormat($sUrl)
{
$sUrlNew = str_replace('/', '#', $sUrl);
return $sUrlNew;
}
}

View File

@ -33,7 +33,7 @@ class Dog extends Base {
$aGitHubNew["watchers"] = $aGitHub["watchers_count"];
$aGitHubNew["forks"] = $aGitHub["forks_count"];
$aGitHubNew["watchers"] = $aGitHub["watchers_count"];
$aGitHubNew["url"] = $aGitHub["html_url"];
$aGitHubNew["url"] = $this->urlFormat($aGitHub["html_url"]);
return $this->toJson($aGitHubNew);