正在显示
1 个修改的文件
包含
3 行增加
和
6 行删除
| @@ -268,14 +268,11 @@ class LoginController extends BaseController | @@ -268,14 +268,11 @@ class LoginController extends BaseController | ||
| 268 | $srcValues = $matches[1]; | 268 | $srcValues = $matches[1]; |
| 269 | $imageModel = new Image(); | 269 | $imageModel = new Image(); |
| 270 | foreach ($srcValues as $srcValue) { | 270 | foreach ($srcValues as $srcValue) { |
| 271 | - var_dump($srcValue); | ||
| 272 | - die(); | ||
| 273 | - $hash = basename($srcValue); | ||
| 274 | - $image_info = $imageModel->read(['hash'=>$hash]); | 271 | + $image_info = $imageModel->read(['hash'=>$srcValue]); |
| 275 | if($image_info !== false){ | 272 | if($image_info !== false){ |
| 276 | - $path = basename($image_info['path']); | 273 | + $path = $image_info['path']; |
| 277 | $data['html'] = str_replace( | 274 | $data['html'] = str_replace( |
| 278 | - '/a/image/'.$hash, | 275 | + '/a/image/'.$srcValue, |
| 279 | $path, | 276 | $path, |
| 280 | $v['html'] | 277 | $v['html'] |
| 281 | ); | 278 | ); |
-
请 注册 或 登录 后发表评论