Ver Fonte

Merge branch '20250522_diywebfr'

15313670163 há 1 dia atrás
pai
commit
6a92e400e4
1 ficheiros alterados com 2 adições e 2 exclusões
  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('删除组件预览图失败!');