From d3a3651805324fb45d9aa74c7fe7b0e9e5ecf9c2 Mon Sep 17 00:00:00 2001 From: hellcat <> Date: Sun, 11 Jan 2026 18:15:09 +0800 Subject: [PATCH] no message --- _env/1.env | 2 +- app/Http/Controllers/CronController.php | 8 ++-- just/tom无脑流程.text | 62 ++++++++++++++++++++++--- 3 files changed, 60 insertions(+), 12 deletions(-) diff --git a/_env/1.env b/_env/1.env index 2cddbfd..b9d26af 100644 --- a/_env/1.env +++ b/_env/1.env @@ -42,7 +42,7 @@ DB_CONNECTION=mariadb DB_HOST=127.0.0.1 DB_PORT=3306 DB_DATABASE=github -DB_USERNAME=hotdog +DB_USERNAME=github DB_PASSWORD=hotshotgg SESSION_DRIVER=database diff --git a/app/Http/Controllers/CronController.php b/app/Http/Controllers/CronController.php index 7757217..07bb594 100755 --- a/app/Http/Controllers/CronController.php +++ b/app/Http/Controllers/CronController.php @@ -255,10 +255,6 @@ class CronController } - if ($this->sPull == "n") { - exit("\n 不提交"); - } - // 请求cfn,更新订阅文件 // 不管是是否真更新,cfn那边没更新就返回昨天的文件,一样用。 $sFnCode = date("Ymd"); @@ -293,6 +289,10 @@ class CronController file_put_contents($this->sProjectPath."/version.text", md5(time())); + if ($this->sPull == "n") { + exit("\n 不提交"); + } + // 提交 if ($this->sSendTg == "n") { $content = file_get_contents($this->sProjectPath."/README.md"); diff --git a/just/tom无脑流程.text b/just/tom无脑流程.text index 85d668e..b23a2cf 100644 --- a/just/tom无脑流程.text +++ b/just/tom无脑流程.text @@ -17,15 +17,16 @@ ssh目录 cd .ssh ssh安装 - sudo apt update - sudo apt install openssh-client - ssh-keygen -t rsa -b 4096 -C "danbiandan@outlook.com" - 生成地址写 /var/www/.ssh/id_rsa_邮箱不要后缀 dahuaidan123123 + sudo apt update && + sudo apt install openssh-client && + ssh-keygen -t rsa -b 4096 -C "xibanyahu@outlook.com" + 提示生成地址写 /var/www/.ssh/id_rsa_xibanyahu + (邮箱不要后缀) 别忘了权限 ssh权限 - chown -R www-data:www-data /var/www/.ssh - chmod 700 /var/www/.ssh + chown -R www-data:www-data /var/www/.ssh && + chmod 700 /var/www/.ssh && chmod 600 /var/www/.ssh/* www创建 @@ -75,9 +76,10 @@ nginx配置 测试:https://github-sg01.diaodu.us/test/hello 去tg上配置他 + /hub#list tg测试 - 测试 %test#cron__id 1 + 测试 /test#cron__id 1 到SSH config updated successfully. 到git push -u origin main错误,就基本ok了,到linux上提交确认kownhost sudo -u www-data git add . @@ -131,3 +133,49 @@ git config --global --add safe.directory /www/wwwroot/github-2.diaodu.us 可一次运行可能需要777权限 iphonevpn clash telegram nefilx vpn vless clashmeta vmess surge ssr + + +====== + +{ + "id": 1, + "user_name": "jichangtuijian99", // github的username + "project_name": "jichangtuijian99.github.io", // 这个应该是本地文件名,应该随便取也行 + "mail_name": "dabiandan", // github注册的email,只要前面 + "mail_tail": "outlook.com", // 后面 + "sale_code": "clashv2rayfree.com", // 销售码 + "sale_rate": 7, // 销售折扣 + "sale_price": 8, // 折后价格 + "i_in10": "false", // 模式选一 :: 每10分钟 + "inday_count": 3, // 模式选一 :: 一天几次(随机) + "cron_condition": "false", // 模式选一 :: 算数 + "mod": "fn_jctj_a", // blade mod + "mod_type": "blade", // 现在都是blade + "status": 1, // 1运行,0不运行 + "memo": "", + "ship_code": "fuuu", + "fn_www": "clashfreenode.com", + "show_huodong": 1, + "show_error": 1 +} + +{ + "user_name": "xibanyahu", + "project_name": "xibanyahu.github.io", + "mail_name": "xibanyahu", + "mail_tail": "outlook.com", + "sale_code": "clashfreenode.com", + "sale_rate": 7, + "sale_price": 8, + "i_in10": "false", + "inday_count": 3, + "cron_condition": "false", + "mod": "test", + "mod_type": "blade", + "status": 1, + "memo": "", + "ship_code": "fuuuu", + "fn_www": "clashfreenode.com", + "show_huodong": 0, + "show_error": 1 +}