作者 liyuhang

gx

@@ -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();