From 94d245cacf50a6fee8d585b5637027accf9c854a Mon Sep 17 00:00:00 2001 From: muzihuaner Date: Wed, 18 Mar 2026 12:40:19 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/kd/counter.dat | 1 + api/kd/index.php | 1 + 2 files changed, 2 insertions(+) create mode 100644 api/kd/counter.dat diff --git a/api/kd/counter.dat b/api/kd/counter.dat new file mode 100644 index 0000000..56a6051 --- /dev/null +++ b/api/kd/counter.dat @@ -0,0 +1 @@ +1 \ No newline at end of file diff --git a/api/kd/index.php b/api/kd/index.php index d4461fb..6ab0559 100644 --- a/api/kd/index.php +++ b/api/kd/index.php @@ -7,6 +7,7 @@ $counter++; // 使用 LOCK_EX 防止并发写入冲突 file_put_contents($file, $counter, LOCK_EX); + header('Content-type: application/json'); require __DIR__.'/../../need.php'; $request = need::request();