作者 lyh

gx

@@ -123,11 +123,12 @@ class LoginController extends BaseController @@ -123,11 +123,12 @@ class LoginController extends BaseController
123 $templateModel = new Template(); 123 $templateModel = new Template();
124 $list = $templateModel->list(); 124 $list = $templateModel->list();
125 foreach ($list as $k => $v){ 125 foreach ($list as $k => $v){
  126 + var_dump($v);
  127 + die();
126 // 使用正则表达式和 preg_match_all 函数来匹配多个 img 标签的 src 值 128 // 使用正则表达式和 preg_match_all 函数来匹配多个 img 标签的 src 值
127 preg_match_all('/\"https:\/\/develop.globalso.com\/a\/image\/(.*?)\"/', $v['html'], $matches); 129 preg_match_all('/\"https:\/\/develop.globalso.com\/a\/image\/(.*?)\"/', $v['html'], $matches);
128 if (!empty($matches[1])) { 130 if (!empty($matches[1])) {
129 $srcValues = $matches[1]; 131 $srcValues = $matches[1];
130 - var_dump($srcValues);  
131 $imageModel = new Image(); 132 $imageModel = new Image();
132 $html = $v['html']; 133 $html = $v['html'];
133 foreach ($srcValues as $srcValue) { 134 foreach ($srcValues as $srcValue) {