|
|
@@ -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不存在!';
|
|
|
}
|