소스 검색

Wesmiler OTC 提交更新 0729

APPLE 3 년 전
부모
커밋
ebc18b24e8
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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);
             }
         }