|
@@ -621,9 +621,9 @@ class Color extends Start_Controller {
|
|
|
}
|
|
|
else if($v != '')
|
|
|
{
|
|
|
- $imagePath = $v;
|
|
|
+ $imagePath = str_replace(array('http://'.$_SERVER['HTTP_HOST'],'http://erp.hnwmzp.cn','https://erp.hnwmzp.cn','http://1.wepolicy.cn/','/img/thumb?src='),'/www/wwwroot/1.wepolicy.cn',$v);
|
|
|
$imageData = file_get_contents($imagePath);
|
|
|
- $base64 = 'data:' . mime_content_type($imagePath) . ';base,' . base64_encode($imageData."&w=200&h=100");
|
|
|
+ $base64 = 'data:' . mime_content_type($imagePath) . ';base,' . base64_encode($imageData);
|
|
|
$info_list[$key]['img'] = "<img width='70' src='".$base64."' data-src='".$v."'>";
|
|
|
}else{
|
|
|
$info_list[$key]['img'] = '';
|
|
@@ -703,4 +703,6 @@ class Color extends Start_Controller {
|
|
|
header("Expires: 0");
|
|
|
exit($str);
|
|
|
}
|
|
|
+
|
|
|
+
|
|
|
}
|