moonsflyer 8 miesięcy temu
rodzic
commit
821f66aeda

+ 0 - 1
app/api/logic/SupplyDemandLogic.php

@@ -431,7 +431,6 @@ class SupplyDemandLogic extends BaseLogic
     public static function getCateList($get)
     {
         $where=[];
-        $where[]=['type','=',$get['type']];
         $where[]=['status','=',1];
         if(isset($get['name'])){
             $where[]=['name','like','%'.$get['name'].'%'];

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

@@ -33,7 +33,7 @@ class SupplyDemandValidate extends BaseValidate
         'id'=>'require',
         'title'=>'require|min:1|max:100',
         'mobile' => 'require|mobile',
-        'type'  => 'require|in:1,2',
+        'type'  => 'in:1,2',
         'cate_id'=> 'require|checkCate',
         'address'=>'require',
         'images'=>'require',