正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -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) { |
-
请 注册 或 登录 后发表评论