Initial commit
This commit is contained in:
commit
4e80077405
9608 files changed
+3007841
No files matched your search
Executable
+53
@@ -0,0 +1,53 @@
|
||||
<?php
|
||||
|
||||
namespace App\Http\Controllers;
|
||||
|
||||
use Illuminate\Http\Request;
|
||||
use App\Models\ArticleList;
|
||||
use App\Services\Time;
|
||||
use voku\helper\AntiXSS;
|
||||
use App\Models\Tags;
|
||||
|
||||
class SakaiController extends Controller
|
||||
{
|
||||
|
||||
public function tool() {
|
||||
|
||||
// $directory = 'feed'; // 替换为你的文件夹路径
|
||||
// $files = glob($directory . '/clash-*'); // 查找以sss开头的文件
|
||||
//
|
||||
// foreach ($files as $file) {
|
||||
// $pathInfo = pathinfo($file); // 获取文件信息
|
||||
// $newFileName = $pathInfo['dirname'] . '/' . $pathInfo['filename'] . '.yaml'; // 新文件名
|
||||
// rename($file, $newFileName); // 重命名文件
|
||||
// }
|
||||
//
|
||||
// echo "文件后缀已更改为 .ccc";
|
||||
//
|
||||
// exit;
|
||||
|
||||
// $k = request('k');
|
||||
//
|
||||
// if ($k != env('k')) {
|
||||
// exit;
|
||||
// }
|
||||
|
||||
$kv = [
|
||||
'节点每日更新 @cron' => '/exec/freenode/up',
|
||||
'静态生成 - 客户端文章' => '/exec/html/client',
|
||||
'模版 - 免费节点文章' => '/fn/single/20241231',
|
||||
'模版 - 客户端文章' => '/client/singe/1001',
|
||||
'静态生成 - 热门标签 @cron' => '/exec/html/toptags',
|
||||
'节点文章 - 批量抓' => '/exec/freenode/craw',
|
||||
'节点文章 - 自动删除 @cron' => '/exec/freenode/del',
|
||||
'点赞 - 初始数据' => '/exec/like/init',
|
||||
'点赞 - 自动增加 @cron' => '/exec/like/auto',
|
||||
'节点文章 - 生成数据' => '/exec/freenode/data/all',
|
||||
'所有文章 - 静态化' => '/exec/freenode/html/all',
|
||||
];
|
||||
|
||||
return view('test/tool', [
|
||||
'ky' => $kv
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user