改名
This commit is contained in:
@@ -96,9 +96,13 @@ abstract class JsonRpcConsumers implements OnRpcConsumerInterface
|
|||||||
/**
|
/**
|
||||||
* @param $service
|
* @param $service
|
||||||
* @return array
|
* @return array
|
||||||
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
private function get_consul($service): array
|
private function get_consul($service): array
|
||||||
{
|
{
|
||||||
|
if (empty($service)) {
|
||||||
|
throw new Exception('You need set rpc service name if used.');
|
||||||
|
}
|
||||||
// $sf = Kiri::getDi()->get(Catalog::class);
|
// $sf = Kiri::getDi()->get(Catalog::class);
|
||||||
//
|
//
|
||||||
// $content = $sf->service($service)->getBody()->getContents();
|
// $content = $sf->service($service)->getBody()->getContents();
|
||||||
|
|||||||
Reference in New Issue
Block a user