浏览代码

修改b端接口:删除组件

15313670163 15 小时之前
父节点
当前提交
9abd1c18a1
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      app/JsonRpc/PublicRpcService.php

+ 2 - 2
app/JsonRpc/PublicRpcService.php

@@ -1661,9 +1661,9 @@ class PublicRpcService implements PublicRpcServiceInterface
                     }
                 }
             }
-            $component_img = ComponentImg::where('component_id',$component['id'])->get();
+            $component_img = ComponentImg::where('component_id',$component['component_type'])->get();
             if(!empty($component_img)){
-                $component_img = ComponentImg::where('component_id',$component['id'])->delete();
+                $component_img = ComponentImg::where('component_id',$component['component_type'])->delete();
                 if(empty($component_img)){
                     Db::rollBack();
                     return Result::error('删除组件预览图失败!');