lvhao 1 month ago
parent
commit
1a9196f512
1 changed files with 3 additions and 1 deletions
  1. 3 1
      core/CoreApp/controllers/Color.php

+ 3 - 1
core/CoreApp/controllers/Color.php

@@ -621,7 +621,9 @@ class Color extends Start_Controller {
 						}
 						else if($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);
+							$imagePath = str_replace('http://'.$_SERVER['HTTP_HOST'],'/www/wwwroot/1.wepolicy.cn',$v);
+							var_dump($imagePath);
+							die;
 							$imageData = file_get_contents($imagePath);
 							$base64 = 'data:' . mime_content_type($imagePath) . ';base,' . base64_encode($imageData);							
 							$info_list[$key]['img'] = "<img width='70' src='".$base64."' data-src='".$v."'>";