作者 lyh

gx

... ... @@ -124,13 +124,14 @@ class LoginController extends BaseController
$list = $templateModel->list();
foreach ($list as $k => $v){
// 使用正则表达式和 preg_match_all 函数来匹配多个 img 标签的 src 值
preg_match_all('/\"https:\/\/develop.globalso.com\/b\/image\/(.*?)\"/', $v['html'], $matches);
preg_match_all('/\"https:\/\/develop.globalso.com\/a\/image\/(.*?)\"/', $v['html'], $matches);
if (!empty($matches[1])) {
$srcValues = $matches[1];
$imageModel = new Image();
$html = $v['html'];
foreach ($srcValues as $srcValue) {
$image_info = $imageModel->read(['hash'=>$srcValue]);
var_dump($image_info);
if($image_info !== false){
var_dump($image_info);
die();
... ...