Ver código fonte

Wesmiler OTC 提交更新 0729

APPLE 3 anos atrás
pai
commit
ebc18b24e8
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      app/Services/Common/ArticleService.php

+ 1 - 1
app/Services/Common/ArticleService.php

@@ -166,7 +166,7 @@ class ArticleService extends BaseService
         if($attrType==2){
             if($id && $this->model->where(['type'=> $type])->whereNotIn('id',[$id])->value('id')){
                 return returnJson('已经存在该分类单页文章', false);
-            }else if($this->model->where(['type'=> $type,'attr_type'=>2])->value('id')){
+            }else if($id<=0 && $this->model->where(['type'=> $type,'attr_type'=>2])->value('id')){
                 return returnJson('已经存在该分类单页文章', false);
             }
         }