Commit 24924bf5 authored by 杨培's avatar 杨培

增加异常注释

parent 5d8c0c06
......@@ -202,7 +202,13 @@ class Client
return $client->put(1024, 0, 60, json_encode($msg, JSON_UNESCAPED_UNICODE));
}
protected static function invoke($method, $params=[], $id=null)
/**
* @param string $method
* @param array $params
* @return mixed
* @throws ClientException|ApiException
*/
protected static function invoke($method, $params=[])
{
static $connections = [];
......@@ -223,7 +229,7 @@ class Client
$connections[$instance->rpcServer] = $conn;
}
return $connections[$instance->rpcServer]->invoke($method, $params, $id);
return $connections[$instance->rpcServer]->invoke($method, $params);
}
/**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment