|
...
|
...
|
@@ -123,10 +123,8 @@ class LoginController extends BaseController |
|
|
|
$templateModel = new Template();
|
|
|
|
$list = $templateModel->list();
|
|
|
|
foreach ($list as $k => $v){
|
|
|
|
var_dump($v);
|
|
|
|
die();
|
|
|
|
// 使用正则表达式和 preg_match_all 函数来匹配多个 img 标签的 src 值
|
|
|
|
preg_match_all('/\"https:\/\/develop.globalso.com\/a\/image\/(.*?)\"/', $v['html'], $matches);
|
|
|
|
preg_match_all('/\"https:\/\/ecdn6.globalso.com\/public\/template\/(.*?)\"/', $v['html'], $matches);
|
|
|
|
if (!empty($matches[1])) {
|
|
|
|
$srcValues = $matches[1];
|
|
|
|
$imageModel = new Image();
|
|
...
|
...
|
@@ -139,8 +137,6 @@ class LoginController extends BaseController |
|
|
|
}
|
|
|
|
}
|
|
|
|
$templateModel->edit(['html'=>$html],['id'=>$v['id']]);
|
|
|
|
var_dump($html);
|
|
|
|
die();
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return 1;
|
...
|
...
|
|