Преглед изворни кода

自助建站-流程管理:删除通栏(通栏关联关系由通栏编号变成通栏id修改)

15313670163 пре 5 месеци
родитељ
комит
7185d7e37e
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      app/JsonRpc/PublicRpcService.php

+ 1 - 1
app/JsonRpc/PublicRpcService.php

@@ -1310,7 +1310,7 @@ class PublicRpcService implements PublicRpcServiceInterface
         }
         Db::beginTransaction();
         try {
-            $component_id = SectorComponent::where('sector_id', $sector['sector_id'])->delete();
+            $component_id = SectorComponent::where('sectorid', $data['id'])->delete();
             if (empty($component_id)) {
                 Db::rollBack();
                 return Result::error('解除相关组件关联关系失败!');