提交 691ac304 编写于 作者: lzc828's avatar lzc828

rpc 测试

上级 5900f5fa
......@@ -31,9 +31,9 @@ abstract class Cache
}
$prev = md5($p . $prev);
}
return static::$conf['prefix'] . $key . '#tag_' . $prev;
return static::$conf[$this->key]['prefix'] . $key . '#tag_' . $prev;
} else {
return static::$conf['prefix'] . $key;
return static::$conf[$this->key]['prefix'] . $key;
}
}
......
......@@ -15,7 +15,7 @@ class Redis extends Cache
{
use ConfigTrait, Pools;
private $key = '';
protected $key = '';
private $config = [];
......
......@@ -143,7 +143,7 @@ class Log
}
private function getTraceId()
public function getTraceId()
{
$trace_id = self::$conf['id'];
$cid = get_co_id();
......
......@@ -36,8 +36,8 @@ class Port
{
$this->server = $server;
$this->conf = $conf;
if (isset($conf['protocol'])) {
$this->protocol = $conf['protocol'];
if (isset($conf['pack_protocol'])) {
$this->protocol = $conf['pack_protocol'];
}
}
......
......@@ -174,7 +174,7 @@ class OneServer
if (isset($call['receive'])) {
$call['receive'] = '__receive';
}
foreach ($call as $e => $f) {
$sev->on($e, [$obj, $f]);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册