| xqd
@@ -51,6 +51,8 @@ class ChatLog extends LazyRenderable
|
|
|
//自定义消息
|
|
|
}elseif ($res[0]['MsgType']=="TIMSoundElem"){
|
|
|
//语音消息
|
|
|
+ $str = "<audio src='".$res[0]['MsgContent']['Url']."' controls='controls'></audio>";
|
|
|
+ return $str;
|
|
|
}elseif ($res[0]['MsgType']=="TIMImageElem"){
|
|
|
//图像消息
|
|
|
$imgs = $res[0]['MsgContent']['ImageInfoArray'];
|
| xqd
@@ -61,6 +63,7 @@ class ChatLog extends LazyRenderable
|
|
|
return $str;
|
|
|
}elseif ($res[0]['MsgType']=="TIMFileElem"){
|
|
|
//文件消息
|
|
|
+
|
|
|
}elseif ($res[0]['MsgType']=="TIMVideoFileElem"){
|
|
|
//视频消息
|
|
|
$str = "<video src='".$res[0]['MsgContent']['VideoUrl']."' style='width:200px;height:200px;margin-right:10px' controls='controls'></video>";
|