debug: return runtime path and data keys

This commit is contained in:
testadmin
2026-05-14 11:43:53 +08:00
parent 8ac5d159ad
commit cbe48e938a
+1 -1
View File
@@ -32,7 +32,7 @@ class Log
'ua' => Request::instance()->header('user-agent', ''),
'ip' => Request::instance()->ip(),
]);
return json(['status' => 1]);
return json(['status' => 1, 'path' => runtime_path(), 'data_keys' => array_keys($data)]);
} catch (\Throwable $e) {
return json(['status' => 0, 'error' => $e->getMessage(), 'path' => runtime_path()]);
}