正在显示
1 个修改的文件
包含
2 行增加
和
5 行删除
| @@ -128,16 +128,13 @@ class LoginController extends BaseController | @@ -128,16 +128,13 @@ 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(); | ||
| 133 | $imageModel = new Image(); | 131 | $imageModel = new Image(); |
| 134 | foreach ($srcValues as $srcValue) { | 132 | foreach ($srcValues as $srcValue) { |
| 135 | - $hash = basename($srcValue); | ||
| 136 | - $image_info = $imageModel->read(['hash'=>$hash]); | 133 | + $image_info = $imageModel->read(['hash'=>$srcValue]); |
| 137 | if($image_info !== false){ | 134 | if($image_info !== false){ |
| 138 | $path = basename($image_info['path']); | 135 | $path = basename($image_info['path']); |
| 139 | $data['html'] = str_replace( | 136 | $data['html'] = str_replace( |
| 140 | - $hash, | 137 | + $srcValue, |
| 141 | $path, | 138 | $path, |
| 142 | $html | 139 | $html |
| 143 | ); | 140 | ); |
-
请 注册 或 登录 后发表评论