no message

This commit is contained in:
hellcat 2025-07-07 15:01:35 +08:00
parent 7d4977c9c7
commit da0cceae16

View File

@ -16,13 +16,17 @@ class Dog extends Base {
$oArticle = ModelArticle::find($iId); $oArticle = ModelArticle::find($iId);
// https://api.github.com/repos/v2rayclashfree-com/v2rayclashfree // https://api.github.com/repos/v2rayclashfree-com/v2rayclashfree
$this->oHttp->sToUrl = "https://api.github.com/repos/".$oArticle->user_name."/".$oArticle->project_name; $this->oHttp->sToUrl = "https://api.github.com/repos/".$oArticle->user_name."/".$oArticle->project_name."sdfsdfsdf";
$this->oHttp->sMetHod = "get"; $this->oHttp->sMetHod = "get";
// $this->oHttp->bIsJson = true; // $this->oHttp->bIsJson = true;
$r = $this->oHttp->send(); $r = $this->oHttp->send();
$aGitHub = json_decode($r, true); $aGitHub = json_decode($r, true);
if (!isset($aGitHub["id"])) {
return $this->toJson($aGitHub);
}
$tmp = str_replace("T", " ", rtrim($aGitHub["updated_at"], "Z")); //updated_at, pushed_at $tmp = str_replace("T", " ", rtrim($aGitHub["updated_at"], "Z")); //updated_at, pushed_at
$tmp = strtotime($tmp); $tmp = strtotime($tmp);
$tmpDate = date("Y-m-d H:i:s", $tmp + (8 * 3600)); $tmpDate = date("Y-m-d H:i:s", $tmp + (8 * 3600));