xiaogang há 4 anos atrás
pai
commit
1f6a4497ca
1 ficheiros alterados com 3 adições e 3 exclusões
  1. 3 3
      app/Admin/Actions/Chat/ChatLog.php

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

xqd
@@ -56,15 +56,15 @@ class ChatLog extends LazyRenderable
                     $imgs = $res[0]['MsgContent']['ImageInfoArray'];
                     $str = "";
                     if(count($imgs)>0){
-
-                    $str.='<img data-action="preview-img" src="'.$imgs[0]['URL'].'" style="max-width:50px;max-height:200px;cursor:pointer" class="img img-thumbnail">';
-
+                        $str.='<img data-action="preview-img" src="'.$imgs[0]['URL'].'" style="max-width:50px;max-height:200px;cursor:pointer" class="img img-thumbnail">';
                     }
                     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>";
+                    return $str;
                 }
             });