moonsflyer 8 months ago
parent
commit
4ac4f5af62
1 changed files with 1 additions and 1 deletions
  1. 1 1
      app/api/validate/SupplyDemandValidate.php

+ 1 - 1
app/api/validate/SupplyDemandValidate.php

@@ -76,7 +76,7 @@ class SupplyDemandValidate extends BaseValidate
     {
         $cate_id_arr = explode(',',$data['cate_id']);
         foreach($cate_id_arr as $v){
-            $info = ServiceCategory::where(['id'=>$v,'type'=>$data['type']])->findOrEmpty();
+            $info = ServiceCategory::where(['id'=>$v])->findOrEmpty();
             if($info->isEmpty()){
                 return '传入的分类id:'.$v.'不存在!';
             }