合并分支 'lyh-server' 到 'master'
变更数据 查看合并请求 !3328
正在显示
1 个修改的文件
包含
2 行增加
和
2 行删除
| @@ -765,10 +765,10 @@ class ImageController extends Controller | @@ -765,10 +765,10 @@ class ImageController extends Controller | ||
| 765 | if($info === false){ | 765 | if($info === false){ |
| 766 | $this->response('请先设置水印',Code::SYSTEM_ERROR); | 766 | $this->response('请先设置水印',Code::SYSTEM_ERROR); |
| 767 | } | 767 | } |
| 768 | - if($info['status'] == 1 && empty($info['image_data'])){ | 768 | + if($this->param['status'] == 1 && empty($info['image_data'])){ |
| 769 | $this->response('请先设置水印',Code::SYSTEM_ERROR); | 769 | $this->response('请先设置水印',Code::SYSTEM_ERROR); |
| 770 | } | 770 | } |
| 771 | - if($info['status'] == 2 && empty($info['str_data'])){ | 771 | + if($this->param['status'] == 2 && empty($info['str_data'])){ |
| 772 | $this->response('请先设置文字水印',Code::SYSTEM_ERROR); | 772 | $this->response('请先设置文字水印',Code::SYSTEM_ERROR); |
| 773 | } | 773 | } |
| 774 | $imageSetting->edit(['status'=>$this->param['status']],['project_id'=>$this->cache['project_id']]); | 774 | $imageSetting->edit(['status'=>$this->param['status']],['project_id'=>$this->cache['project_id']]); |
-
请 注册 或 登录 后发表评论