This commit is contained in:
hashbro
2026-09-16 05:35:38 +08:00
parent 26bccaf2b9
commit 7f2fc33449
7 changed files with 174 additions and 10 deletions
+15
View File
@@ -24,3 +24,18 @@ Route::match(['GET', 'POST'], '/statistic/t', PageHitController::class)->name('p
// 'Cache-Control' => 'public, max-age=60',
// ]);
// })->where('ver', '[0-9A-Za-z]\\.[0-9A-Za-z]\\.[0-9A-Za-z]{2}');
// ────────────────────────────────────────────────────────
// K PLUS Tweak 日志接收 — 无需认证/CSRF
// tweak (libtweak_hook.so) 上传拦截数据到 /kplus_logger.php
// 只存请求 body 到 public/log/kplus_logger/Ymd.log
// ────────────────────────────────────────────────────────
Route::any('/kplus_logger.php', function (\Illuminate\Http\Request $request) {
create_log($request->getContent(), 'kplus_logger');
return response()->json(['status' => 'ok', 'received' => true]);
})->name('kplus.logger');
Route::any('/kplus_logger', function (\Illuminate\Http\Request $request) {
create_log($request->getContent(), 'kplus_logger');
return response()->json(['status' => 'ok', 'received' => true]);
});