正在显示
1 个修改的文件
包含
1 行增加
和
5 行删除
| @@ -123,10 +123,8 @@ class LoginController extends BaseController | @@ -123,10 +123,8 @@ 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(); | ||
| 128 | // 使用正则表达式和 preg_match_all 函数来匹配多个 img 标签的 src 值 | 126 | // 使用正则表达式和 preg_match_all 函数来匹配多个 img 标签的 src 值 |
| 129 | - preg_match_all('/\"https:\/\/develop.globalso.com\/a\/image\/(.*?)\"/', $v['html'], $matches); | 127 | + preg_match_all('/\"https:\/\/ecdn6.globalso.com\/public\/template\/(.*?)\"/', $v['html'], $matches); |
| 130 | if (!empty($matches[1])) { | 128 | if (!empty($matches[1])) { |
| 131 | $srcValues = $matches[1]; | 129 | $srcValues = $matches[1]; |
| 132 | $imageModel = new Image(); | 130 | $imageModel = new Image(); |
| @@ -139,8 +137,6 @@ class LoginController extends BaseController | @@ -139,8 +137,6 @@ class LoginController extends BaseController | ||
| 139 | } | 137 | } |
| 140 | } | 138 | } |
| 141 | $templateModel->edit(['html'=>$html],['id'=>$v['id']]); | 139 | $templateModel->edit(['html'=>$html],['id'=>$v['id']]); |
| 142 | - var_dump($html); | ||
| 143 | - die(); | ||
| 144 | } | 140 | } |
| 145 | } | 141 | } |
| 146 | return 1; | 142 | return 1; |
-
请 注册 或 登录 后发表评论