2 Commits 3244d423e7 ... 57db50a156

Autore SHA1 Messaggio Data
  15313670163 57db50a156 Merge branch '20250522_diywebfr' 1 settimana fa
  15313670163 9050ad9b99 修改接口:获取组件列表; 1 settimana fa
1 ha cambiato i file con 4 aggiunte e 4 eliminazioni
  1. 4 4
      app/JsonRpc/PublicRpcService.php

+ 4 - 4
app/JsonRpc/PublicRpcService.php

@@ -1251,12 +1251,12 @@ class PublicRpcService implements PublicRpcServiceInterface
             array_push($where, ['component.component_name', 'like', '%' . $data['component_name'] . '%']);
         }
         if (isset($data['width']) && !empty($data['width']) && isset($data['height']) && !empty($data['height'])) {
-            array_push($where, ['size.width', 'like', '%' . $data['width'] . '%']);
-            array_push($where, ['size.height', 'like', '%' . $data['height'] . '%']);
+            array_push($where, ['component.component_width', 'like', '%' . $data['width'] . '%']);
+            array_push($where, ['component.component_height', 'like', '%' . $data['height'] . '%']);
         } else if (isset($data['width']) && !empty($data['width'])) {
-            array_push($where, ['size.width', 'like', '%' . $data['width'] . '%']);
+            array_push($where, ['component.component_width', 'like', '%' . $data['width'] . '%']);
         } else if (isset($data['height']) && !empty($data['height'])) {
-            array_push($where, ['size.height', 'like', '%' . $data['height'] . '%']);
+            array_push($where, ['component.component_height', 'like', '%' . $data['height'] . '%']);
         } else {
         }
         if(isset($data['type_id']) && !empty($data['type_id'])){