no message

This commit is contained in:
hellcat 2025-07-19 20:34:01 +08:00
parent 01b4dee6cf
commit 078151e8ee
2 changed files with 4 additions and 1 deletions

View File

@ -178,7 +178,7 @@ class CronController
file_put_contents($this->sProjectPath."/README.md", $this->formatstr($sReadMe)); 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") { if ($this->sSendTg == "n") {

View File

@ -29,6 +29,7 @@ class Hub extends Base {
public function github($aParam) public function github($aParam)
{ {
// $sWhereField = $aParam["aOption"] ?? $this->
$iId = $aParam["aArg"][1] ?? false; $iId = $aParam["aArg"][1] ?? false;
if (empty($aParam["aOption"]) && empty($aParam["aArg"])) { if (empty($aParam["aOption"]) && empty($aParam["aArg"])) {
@ -37,6 +38,8 @@ class Hub extends Base {
$oArticle = ModelArticle::find($iId); $oArticle = ModelArticle::find($iId);
var_dump($oArticle);exit;
$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;
$this->oHttp->sMetHod = "get"; $this->oHttp->sMetHod = "get";
$r = $this->oHttp->send(); $r = $this->oHttp->send();