xiaogang 3 年 前
コミット
acffda28db
1 ファイル変更3 行追加0 行削除
  1. 3 0
      app/Admin/Actions/Chat/ChatLog.php

+ 3 - 0
app/Admin/Actions/Chat/ChatLog.php

xqd 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'];
@@ -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>";