duqinya 6 vuotta sitten
vanhempi
commit
db44f74c5e
1 muutettua tiedostoa jossa 0 lisäystä ja 17 poistoa
  1. 0 17
      app/Helper/helper.php

+ 0 - 17
app/Helper/helper.php

@@ -46,20 +46,3 @@ function verifySign($sign, $params, $secret_key)
 
 }
 
-function http($url, $param, $method = 'post')
-{
-    try {
-        $client = new \GuzzleHttp\Client();
-        $response = $client->request($method, $url, $param);
-        $result = json_decode($response->getBody()->getContents(), true);
-        if ($result['code'] == 0) {
-            return $result['data'];
-        } else {
-            return [];
-        }
-    } catch (\Exception $exception) {
-        return [];
-    }
-
-}
-