|
@@ -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('删除组件预览图失败!');
|