Skip to content

Commit

Permalink
fix bug:bool to string
Browse files Browse the repository at this point in the history
  • Loading branch information
salamander committed Mar 7, 2019
1 parent 83ec27e commit 11aae75
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Api/ChatRoom.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'];
}
Expand All @@ -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;
}
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 11aae75

Please sign in to comment.