no message

This commit is contained in:
hellcat 2025-04-17 20:08:06 +08:00
parent 762fce8c01
commit e45fe38aef

View File

@ -11,7 +11,7 @@ class CronController
private $sUserName; private $sUserName;
private $sProjectName; private $sProjectName;
private $sHostName; // private $sHostName;
private $sProjectPath; private $sProjectPath;
private $sProjectUrl; private $sProjectUrl;
@ -86,9 +86,8 @@ class CronController
foreach ($aArticle as $row) { foreach ($aArticle as $row) {
$this->sUserName = $row["user_name"]; $this->sUserName = $row["user_name"];
$this->sProjectName = $row["project_name"]; $this->sProjectName = $row["project_name"];
$this->sHostName = $row['host_name']; $this->sProjectPath = env("BASE_DIR")."github/".$this->sUserName."-".$this->sProjectName;
$this->sProjectPath = env("BASE_DIR")."github/".$this->sHostName."-".$this->sProjectName; $this->sProjectUrl = env("github_url_base").":".$this->sUserName."/".$this->sProjectName.".git";
$this->sProjectUrl = env("github_url_base").":".$this->sHostName."/".$this->sProjectName.".git";
$this->aArticle = $row; $this->aArticle = $row;
list($sClass, $sFunc) = explode('#', $row['mod']); list($sClass, $sFunc) = explode('#', $row['mod']);
@ -136,10 +135,10 @@ class CronController
{ {
// 定义要添加的配置 // 定义要添加的配置
$host = $this->sHostName; $host = $this->sUserName;
$hostname = "github.com"; $hostname = "github.com";
$user = "git"; $user = "git";
$identityFile = env("path_ssh")."/id_rsa_".$sHostName; $identityFile = env("path_ssh")."/id_rsa_".$host;
// 构建配置字符串 // 构建配置字符串
$config = "\nHost ".$host.".com\n"; $config = "\nHost ".$host.".com\n";