소스 검색

修改接口:自助建站-通栏版式管理-添加、修改通栏版式的接口

15313670163 3 일 전
부모
커밋
f8cb5bcc0c
1개의 변경된 파일1개의 추가작업 그리고 3개의 파일을 삭제
  1. 1 3
      app/JsonRpc/PublicRpcService.php

+ 1 - 3
app/JsonRpc/PublicRpcService.php

@@ -1697,8 +1697,7 @@ class PublicRpcService implements PublicRpcServiceInterface
             if(empty($sector_type)){
                 return Result::error('通栏版式类别不存在!');
             }
-            $component = SectorPlace::where('sector_type', $data['sector_type'])
-            ->where('component_type', $data['type'])
+            $component = SectorPlace::where('component_type', $data['type'])
             ->where('type_id',2)
             ->first();
             if(!empty($component)){
@@ -1749,7 +1748,6 @@ class PublicRpcService implements PublicRpcServiceInterface
                 return Result::error('通栏版式类别不存在!');
             }
             $component = SectorPlace::where('id','!=',$id) 
-            ->where('sector_type', $data['sector_type'])
             ->where('component_type', $data['type'])
             ->where('type_id',2)
             ->first();