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

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

@@ -87,7 +87,7 @@ class SupplyDemandValidate extends BaseValidate
     public function checkCate($scene, $rule, $data)
     {
 
-        $info = SupplyDemandCate::where(['id'=>$data['cate_id'],'type'=>$data['type']])->findOrEmpty();
+        $info = SupplyDemandCate::where(['id'=>$data['cate_id']])->findOrEmpty();
         if($info->isEmpty()){
             return '传入的分类id不存在!';
         }