no message

This commit is contained in:
hellcat 2025-04-17 21:19:45 +08:00
parent e45fe38aef
commit d2c9f03dec

View File

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