xiaogang 3 年之前
父节点
当前提交
50a3ba266f
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      app/Admin/Actions/Chat/ChatLog.php

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

xqd
@@ -57,9 +57,9 @@ class ChatLog extends LazyRenderable
                     dd($imgs);
                     $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">';
-                        }
+
+                    $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"){