增加图片处理3

hotfix/远程访问多媒体中心
LMR 7 years ago
parent ebd72be542
commit f11531e9fc

@ -473,7 +473,15 @@ class Info_amp extends CI_Controller
}
}
//html处理
$html = file_get_contents($html_parh);
if (file_exists($html_parh)) {
$html = file_get_contents($html_parh);
} else {
echo(json_encode(array(
'status' => 'error',
'html' => $command.' > '.$html_parh
)));
return;
}
$html = preg_replace('/src="([\d]+).jpeg"/i', 'src="'.$test_host.'/information-view/information/word_source/'.$md5_file.'/$1.jpg"', $html);
//删除临时html
@unlink($html_parh);

Loading…
Cancel
Save