소스 검색

修改接口:通栏版式管理-修改通栏版式

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

+ 1 - 1
app/JsonRpc/PublicRpcService.php

@@ -1730,7 +1730,7 @@ class PublicRpcService implements PublicRpcServiceInterface
         $id = $data['id'];
        // 1:通栏;2:组件;
         if($data['type_id'] == 1){
-            $sector_place = SectorPlace::where('id','!=',$id)->where('sector_type', $data['type'])->first(); 
+            $sector_place = SectorPlace::where('id','!=',$id)->where('sector_type', $data['type'])->where('type_id',1)->first(); 
             if(!empty($sector_place)){
                 return Result::error('通栏版式类别编号已存在!');
             }