|
|
|
@ -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);
|
|
|
|
|