调试工具
This commit is contained in:
parent
e198efa7ce
commit
50c3fb8e26
|
@ -118,7 +118,8 @@ class Client extends JsonRpc
|
||||||
}
|
}
|
||||||
if (isset($body['error']) && isset($body['error']['code']) && isset($body['error']['message'])) {
|
if (isset($body['error']) && isset($body['error']['code']) && isset($body['error']['message'])) {
|
||||||
$message = is_array($body['error']['message']) ? json_encode($body['error']['message']) : $body['error']['message'];
|
$message = is_array($body['error']['message']) ? json_encode($body['error']['message']) : $body['error']['message'];
|
||||||
throw new RpcServerException($message, $body['error']['code']);
|
$e = new RpcServerException($message, $body['error']['code']);
|
||||||
|
throw $e;
|
||||||
}
|
}
|
||||||
|
|
||||||
return $body['result'];
|
return $body['result'];
|
||||||
|
|
|
@ -20,7 +20,9 @@ class BaseServiceProvider extends ServiceProvider
|
||||||
//local
|
//local
|
||||||
'127.0.0.1',
|
'127.0.0.1',
|
||||||
//北京办公区
|
//北京办公区
|
||||||
'172.16.100.0/16'
|
'172.16.100.0/16',
|
||||||
|
//aliyun slb
|
||||||
|
'100.116.71.0/16',
|
||||||
], Request::HEADER_X_FORWARDED_ALL);
|
], Request::HEADER_X_FORWARDED_ALL);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -81,9 +81,12 @@
|
||||||
code : {{$error['code']}} <br>
|
code : {{$error['code']}} <br>
|
||||||
message : {{$error['message']}}
|
message : {{$error['message']}}
|
||||||
</div>
|
</div>
|
||||||
<h5>返回内容:</h5>
|
@if($error['resp'])
|
||||||
<iframe style="width: 100%;height: 500px;border: none;" srcdoc='{{$error['resp']->getBody()}}'></iframe>
|
<h5>返回内容:</h5>
|
||||||
<hr>
|
<iframe style="width: 100%;height: 500px;border: none;"
|
||||||
|
srcdoc='{{$error['resp']->getBody()}}'></iframe>
|
||||||
|
<hr>
|
||||||
|
@endif
|
||||||
@endif
|
@endif
|
||||||
@if( !empty($result) )
|
@if( !empty($result) )
|
||||||
<h5>Result:</h5>
|
<h5>Result:</h5>
|
||||||
|
|
Loading…
Reference in New Issue
Block a user