mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
api return queries when debug
This commit is contained in:
@@ -585,6 +585,9 @@ function api(...$args)
|
||||
$results['recordsTotal'] = $count;
|
||||
$results['recordsFiltered'] = $count;
|
||||
}
|
||||
if (!IN_NEXUS && config('app.debug')) {
|
||||
$results['queries'] = last_query(true);
|
||||
}
|
||||
do_log("api end");
|
||||
return $results;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user