改名
This commit is contained in:
+1
-1
@@ -105,7 +105,7 @@ class Producer extends Component
|
||||
}
|
||||
$groupId = $consumers['groupId'];
|
||||
}
|
||||
$this->setGroupId($groupId)->setTopic($topic)->delivery(Json::encode($params));
|
||||
$this->setGroupId($groupId)->setTopic($topic)->delivery(swoole_serialize($params));
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -24,6 +24,8 @@ class Struct
|
||||
*/
|
||||
public function __construct($topic, Message $message)
|
||||
{
|
||||
$message->payload = swoole_unserialize($message->payload);
|
||||
|
||||
$this->topic = $topic;
|
||||
$this->offset = $message->offset;
|
||||
$this->part = $message->partition;
|
||||
|
||||
Reference in New Issue
Block a user