xiaogang 3 năm trước cách đây
mục cha
commit
f3f0261244
1 tập tin đã thay đổi với 8 bổ sung0 xóa
  1. 8 0
      app/Admin/Actions/Chat/ChatLog.php

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

xqd
@@ -53,6 +53,14 @@ class ChatLog extends LazyRenderable
                     //语音消息
                 }elseif ($res[0]['MsgType']=="TIMImageElem"){
                     //图像消息
+                    $imgs = $res[0]['MsgContent']['ImageInfoArray'];
+                    $str = "";
+                    if(count($imgs)>0){
+                        foreach ($imgs as $item){
+                            $str.='<img data-action="preview-img" src="'.$item['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"){