Переглянути джерело

Merge branch '20250522_diywebfr'

15313670163 6 місяців тому
батько
коміт
57db50a156
1 змінених файлів з 4 додано та 4 видалено
  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'] . '%']);
             array_push($where, ['component.component_name', 'like', '%' . $data['component_name'] . '%']);
         }
         }
         if (isset($data['width']) && !empty($data['width']) && isset($data['height']) && !empty($data['height'])) {
         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'])) {
         } 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'])) {
         } 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 {
         } else {
         }
         }
         if(isset($data['type_id']) && !empty($data['type_id'])){
         if(isset($data['type_id']) && !empty($data['type_id'])){