作者 lyh

gx

... ... @@ -128,16 +128,13 @@ class LoginController extends BaseController
preg_match_all('/\"https:\/\/ecdn6.globalso.com\/public\/template\/(.*?)\"/', $v['html'], $matches);
if (!empty($matches[1])) {
$srcValues = $matches[1];
var_dump($srcValues);
die();
$imageModel = new Image();
foreach ($srcValues as $srcValue) {
$hash = basename($srcValue);
$image_info = $imageModel->read(['hash'=>$hash]);
$image_info = $imageModel->read(['hash'=>$srcValue]);
if($image_info !== false){
$path = basename($image_info['path']);
$data['html'] = str_replace(
$hash,
$srcValue,
$path,
$html
);
... ...