改名
This commit is contained in:
@@ -60,15 +60,13 @@ class OnReceive extends Callback
|
|||||||
/**
|
/**
|
||||||
* @param Server $server
|
* @param Server $server
|
||||||
* @param int $fd
|
* @param int $fd
|
||||||
|
* @param int $reID
|
||||||
* @param string $data
|
* @param string $data
|
||||||
* @return mixed
|
* @return mixed
|
||||||
* @throws Exception
|
* @throws Exception
|
||||||
*/
|
*/
|
||||||
public function onHandler(\Swoole\Server $server, $fd, $data)
|
public function onHandler(\Swoole\Server $server, int $fd,int $reID,string $data)
|
||||||
{
|
{
|
||||||
$args = func_get_args();
|
|
||||||
array_shift($args);
|
|
||||||
var_dump($args, func_num_args());
|
|
||||||
try {
|
try {
|
||||||
$client = [$fd];
|
$client = [$fd];
|
||||||
if (empty($data = $this->unpack($data))) {
|
if (empty($data = $this->unpack($data))) {
|
||||||
|
|||||||
Reference in New Issue
Block a user