正在显示
1 个修改的文件
包含
2 行增加
和
1 行删除
| @@ -128,11 +128,12 @@ class LoginController extends BaseController | @@ -128,11 +128,12 @@ class LoginController extends BaseController | ||
| 128 | preg_match_all('/\"https:\/\/ecdn6.globalso.com\/public\/template\/(.*?)\"/', $v['html'], $matches); | 128 | preg_match_all('/\"https:\/\/ecdn6.globalso.com\/public\/template\/(.*?)\"/', $v['html'], $matches); |
| 129 | if (!empty($matches[1])) { | 129 | if (!empty($matches[1])) { |
| 130 | $srcValues = $matches[1]; | 130 | $srcValues = $matches[1]; |
| 131 | + var_dump($srcValues); | ||
| 132 | + die(); | ||
| 131 | $imageModel = new Image(); | 133 | $imageModel = new Image(); |
| 132 | foreach ($srcValues as $srcValue) { | 134 | foreach ($srcValues as $srcValue) { |
| 133 | $hash = basename($srcValue); | 135 | $hash = basename($srcValue); |
| 134 | $image_info = $imageModel->read(['hash'=>$hash]); | 136 | $image_info = $imageModel->read(['hash'=>$hash]); |
| 135 | - var_dump($image_info); | ||
| 136 | if($image_info !== false){ | 137 | if($image_info !== false){ |
| 137 | $path = basename($image_info['path']); | 138 | $path = basename($image_info['path']); |
| 138 | $data['html'] = str_replace( | 139 | $data['html'] = str_replace( |
-
请 注册 或 登录 后发表评论