生产环境不产生
This commit is contained in:
parent
301271771e
commit
710313a1b3
|
@ -39,7 +39,7 @@ class TunnelMiddleware
|
||||||
{
|
{
|
||||||
//过滤tool返回结果
|
//过滤tool返回结果
|
||||||
if ($response instanceof JsonResponse) {
|
if ($response instanceof JsonResponse) {
|
||||||
if (app()->environment('dev', 'production')) {
|
if (app()->environment('dev')) {
|
||||||
$content = $response->getOriginalContent();
|
$content = $response->getOriginalContent();
|
||||||
$status = isset($content['error']) ? $content['error']['code'] : 200;
|
$status = isset($content['error']) ? $content['error']['code'] : 200;
|
||||||
$client = new \InfluxDB\Client("10.0.1.67");
|
$client = new \InfluxDB\Client("10.0.1.67");
|
||||||
|
|
Loading…
Reference in New Issue
Block a user