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