Преглед на файлове

修改接口:获取组件列表;

15313670163 преди 2 дни
родител
ревизия
9050ad9b99
променени са 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'] . '%']);
         }
         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'])){