Просмотр исходного кода

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

15313670163 19 часов назад
Родитель
Сommit
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('通栏版式类别编号已存在!');
             }