|
@@ -617,11 +617,14 @@ class Color extends Start_Controller {
|
|
|
$lx = strtolower(end($lx));
|
|
|
if($lx == "3gp" || $lx == "rmvb" || $lx == "flv" || $lx == "wmv" || $lx == "avi" || $lx == "mkv" || $lx == "wav" || $lx == "mp4")
|
|
|
{
|
|
|
- $info_list[$key]['img'] = '<video width="70" src="'.$v.'" controls="controls"';
|
|
|
+ $info_list[$key]['img'] = '暂不支持视频';
|
|
|
}
|
|
|
else if($v != '')
|
|
|
{
|
|
|
- $info_list[$key]['img'] = "<img width='70' src='".site_url('img/thumb')."?src=".str_replace(array('http://'.$_SERVER['HTTP_HOST'],'http://erp.hnwmzp.cn','https://erp.hnwmzp.cn','http://1.wepolicy.cn/','/img/thumb?src='),'',$v)."&w=200&h=100' data-src='".$v."'>";
|
|
|
+ $imagePath = $v;
|
|
|
+ $imageData = file_get_contents($imagePath);
|
|
|
+ $base64 = 'data:' . mime_content_type($imagePath) . ';base,' . base64_encode($imageData."&w=200&h=100");
|
|
|
+ $info_list[$key]['img'] = "<img width='70' src='".$base64."' data-src='".$v."'>";
|
|
|
}else{
|
|
|
$info_list[$key]['img'] = '';
|
|
|
}
|