作者 lyh

gx

@@ -728,10 +728,10 @@ class ImageController extends Controller @@ -728,10 +728,10 @@ class ImageController extends Controller
728 if($info === false){ 728 if($info === false){
729 $this->response('请先设置水印',Code::SYSTEM_ERROR); 729 $this->response('请先设置水印',Code::SYSTEM_ERROR);
730 } 730 }
731 - if($info['status'] == 1 && !empty($info['image_data'])){ 731 + if($info['status'] == 1 && empty($info['image_data'])){
732 $this->response('请先设置水印',Code::SYSTEM_ERROR); 732 $this->response('请先设置水印',Code::SYSTEM_ERROR);
733 } 733 }
734 - if($info['status'] == 2 && !empty($info['str_data'])){ 734 + if($info['status'] == 2 && empty($info['str_data'])){
735 $this->response('请先设置水印',Code::SYSTEM_ERROR); 735 $this->response('请先设置水印',Code::SYSTEM_ERROR);
736 } 736 }
737 $imageSetting->edit(['status'=>$this->param['status']],['project_id'=>$this->cache['project_id']]); 737 $imageSetting->edit(['status'=>$this->param['status']],['project_id'=>$this->cache['project_id']]);