From 11aae75dd3c1c0640511872e54e2898ea127f934 Mon Sep 17 00:00:00 2001 From: salamander <1906747819@qq.com> Date: Thu, 7 Mar 2019 11:16:25 +0800 Subject: [PATCH] =?UTF-8?q?fix=20bug=EF=BC=9Abool=20to=20string?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/Api/ChatRoom.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/Api/ChatRoom.php b/src/Api/ChatRoom.php index b482f59..efe59d3 100644 --- a/src/Api/ChatRoom.php +++ b/src/Api/ChatRoom.php @@ -120,7 +120,7 @@ public function get($roomId, $needOnlineUserCount = false) { $res = $this->sendRequest('chatroom/get.action', [ 'roomid' => $roomId, - 'needOnlineUserCount' => $needOnlineUserCount, + 'needOnlineUserCount' => $this->bool2String($needOnlineUserCount), ]); return $res['chatroom']; } @@ -143,7 +143,7 @@ public function getBatch(array $roomIds, $needOnlineUserCount = false) { $res = $this->sendRequest('chatroom/getBatch.action', [ 'roomids' => json_encode($roomIds), - 'needOnlineUserCount' => $needOnlineUserCount, + 'needOnlineUserCount' => $this->bool2String($needOnlineUserCount), ]); return $res; } @@ -205,7 +205,7 @@ public function update($roomId, $name = NULL, $announcement = NULL, $broadcastur $data['ext'] = $ext; } if (isset($needNotify)) { - $data['needNotify'] = $needNotify; + $data['needNotify'] = $this->bool2String($needNotify); } if (isset($notifyExt)) { $data['notifyExt'] = $notifyExt;