debug: return runtime path and data keys
This commit is contained in:
@@ -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()]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user