|
|
@@ -139,7 +139,7 @@ class Watermark extends Controller
|
|
|
public function getCertificateList($category_ids = [])
|
|
|
{
|
|
|
$model = new CertificateModel;
|
|
|
- if (!$list = $model->getCertificateList(['certificate_category_id' => ['in', $category_ids]], ['id', 'name'])) {
|
|
|
+ if (!$list = $model->getCertificateList(['certificate_category_id' => ['in', $category_ids], 'is_delete' => ['=', 0]], ['id', 'name'])) {
|
|
|
return $this->renderError($model->getError() ?: '请求失败');
|
|
|
}
|
|
|
return $this->renderSuccess('请求成功', '', $list);
|