From 9947f8806f01ad90cbec0300abfbc64db5f00dc2 Mon Sep 17 00:00:00 2001 From: zyimm Date: Thu, 24 Aug 2023 13:43:04 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89back=5Furl?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/producer/Producer.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/producer/Producer.php b/src/producer/Producer.php index f617617..8365e0a 100644 --- a/src/producer/Producer.php +++ b/src/producer/Producer.php @@ -38,7 +38,7 @@ class Producer } else { $uri = $uri.'/rocketmq/producer/send'; } - yield new Request('POST', $uri, [], $this->buildMessage($item)); + yield new Request('POST', $uri, [], json_encode($this->buildMessage($item))); } }; //连接池