Skip to content

Commit

Permalink
fix bug:bool类型发送前变成string
Browse files Browse the repository at this point in the history
  • Loading branch information
salamander committed Feb 28, 2019
1 parent 6b9b799 commit 33412c4
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/Api/ChatRoom.php
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ public function setMemberRole($roomId, $operator, $target, $opt, $optValue, $not
'operator' => $operator,
'target' => $target,
'opt' => $opt,
'optvalue' => $optValue,
'optvalue' => $this->bool2String($optValue),
'notifyExt' => $notifyExt,
]);
return $res['desc'];
Expand Down Expand Up @@ -386,9 +386,9 @@ private function sendMsg($roomId, $msgId, $fromAccid, $msgType, $resendFlag = NU
'antispamCustom' => $antispamCustomStr,
'skipHistory' => $skipHistory,
'bid' => $bid,
'highPriority' => $highPriority,
'highPriority' => $this->bool2String($highPriority),
'useYidun' => $useYidun,
'needHighPriorityMsgResend' => $needHighPriorityMsgResend,
'needHighPriorityMsgResend' => $this->bool2String($needHighPriorityMsgResend),
]);
return $res['desc'];
}
Expand Down Expand Up @@ -721,8 +721,8 @@ public function muteRoom($roomId, $operator, $mute, $needNotify = TRUE, $notifyE
$res = $this->sendRequest('chatroom/muteRoom.action', [
'roomid' => $roomId,
'operator' => $operator,
'mute' => $mute,
'needNotify' => $needNotify,
'mute' => $this->bool2String($mute),
'needNotify' => $this->bool2String($needNotify),
'notifyExt' => $notifyExt,
]);
return $res['desc'];
Expand Down Expand Up @@ -879,7 +879,7 @@ public function queueBatchUpdateElements($roomId, $operator, array $elements, $n
'operator' => $operator,
'elements' => json_encode($elements),
'needNotify' => $needNotify,
'notifyExt' => $notifyExt,
'notifyExt' => $this->bool2String($notifyExt),
]);
return $res['desc'];
}
Expand Down

0 comments on commit 33412c4

Please sign in to comment.