no message

This commit is contained in:
hellcat 2025-04-18 20:49:58 +08:00
parent b0babc9dc7
commit 308c5c253f
2 changed files with 3 additions and 2 deletions

View File

@ -223,7 +223,7 @@ class CronController
// 添加远程仓库
$this->runCommand("git remote add origin \"{$this->sProjectUrl}\"");
echo "操作完成:以初始化仓库[$this->sProjectPath]。\n";
echo "操作完成:以初始化仓库[".$this->aArticle['id']."]。\n";
}
@ -261,7 +261,7 @@ class CronController
// 推送到远程主分支
$this->runCommand('git push -u origin main'); // 确保将 'main' 替换为你的默认分支名称
echo "操作完成:已提交并推送更改[$this->sProjectPath]。\n";
echo "操作完成:已提交并推送更改[".$this->aArticle['id']."]。\n";
}
}

View File

@ -21,6 +21,7 @@ class Cmd extends Base {
'文章clone' => "article#clone id",
'git手动重置' => "git#pullR",
'文章find' => "article#find id",
'cron暂停' => "cron#pause 1",
];
$this->oTGHttp->sendToTG(json_encode($aCmdList, JSON_UNESCAPED_UNICODE | JSON_PRETTY_PRINT));