moonsflyer 9 月之前
父節點
當前提交
3590f4ac84
共有 1 個文件被更改,包括 1 次插入1 次删除
  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不存在!';
         }