正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -65,8 +65,8 @@ class UserLogic extends BaseLogic | @@ -65,8 +65,8 @@ class UserLogic extends BaseLogic | ||
| 65 | if($info !== false && !empty($info['image'])){ | 65 | if($info !== false && !empty($info['image'])){ |
| 66 | //TODO::删除资源 | 66 | //TODO::删除资源 |
| 67 | $imageModel = new Image(); | 67 | $imageModel = new Image(); |
| 68 | - $image_info = $imageModel->read(['hash'=>$info['hash']],['id','path']); | ||
| 69 | - shell_exec('rm -rf '.$image_info['path'] .'./../uploads/images/cache_'. $info['hash'] . '*'); | 68 | + $image_info = $imageModel->read(['hash'=>$info['image']],['id','path']); |
| 69 | + shell_exec('rm -rf '.$image_info['path'] .'./../uploads/images/cache_'. $info['image'] . '*'); | ||
| 70 | $imageModel->del(['hash'=>$info['image']]); | 70 | $imageModel->del(['hash'=>$info['image']]); |
| 71 | } | 71 | } |
| 72 | $this->param['image'] = $this->upload(); | 72 | $this->param['image'] = $this->upload(); |
-
请 注册 或 登录 后发表评论