Преглед изворни кода

Se actualiza el vendor para solucionar un pequeño bug.

Maximiliano Schvindt пре 7 година
родитељ
комит
db2eef75c9
1 измењених фајлова са 9 додато и 15 уклоњено
  1. 9 15
      Services/Webservice.php

+ 9 - 15
Services/Webservice.php

@@ -136,7 +136,7 @@ class Webservice
     }
 
     /**
-     * @param string $webservice
+     * @param string $url
      * @param array $filters
      * @param array $order_by
      * @param integer $limit
@@ -144,21 +144,16 @@ class Webservice
      * 
      * @return array
      */
-    public function getData($webservice, $filters = array(), $order_by = array(), $limit = null, $offset = null)
+    public function getData($url, $filters = array(), $order_by = array(), $limit = null, $offset = null)
     {
-        if ($this->serviceContainer->hasParameter($webservice)) {
-            $url = $this->buildUrl($webservice, $filters, $order_by, $limit, $offset);
-            $data = array();
-            try {
-                $data = json_decode($this->makeGetRequest($url), true);
-            } catch (\Exception $ex) {
-                
-            }
+        $data = array();
+        try {
+            $url = $this->buildUrl($url, $filters, $order_by, $limit, $offset);
+            $data = json_decode($this->makeGetRequest($url), true);
+        } catch (\Exception $ex) {}
 
-            return $data;
-        }
+        return $data;
 
-        return array();
     }
 
     /**
@@ -176,8 +171,7 @@ class Webservice
         try {
             $url = $this->buildUrl($url, $filters, $order_by, $limit, $offset);
             $data = json_decode($this->makeRequest($url), true);
-        } catch (\Exception $ex) {
-        }
+        } catch (\Exception $ex) {}
 
         return $data;
     }