Browse Source

fix neterror

stanley-king 3 years ago
parent
commit
c9e7a5e249

+ 3 - 3
core/framework/function/http.php

@@ -64,7 +64,7 @@ function http_request($url, $params = array(), $method = 'GET', $multi = false,
     if($response === false) {
         $err = curl_error($ci);
         $net_errno  = curl_errno($ci);
-        Log::record("netmodule http_request errno={$net_errno} err={$err}",Log::ERR);
+        Log::record("netmodule http_request errno={$net_errno} err={$err} url={$url}",Log::ERR);
     }
 
     curl_close($ci);
@@ -97,7 +97,7 @@ function http_post_data($url, $body, $headers = array(),&$net_errno = 0)
     if($response === false) {
         $err = curl_error($ci);
         $net_errno  = curl_errno($ci);
-        Log::record("netmodule http_post_data errno={$net_errno} err={$err}",Log::ERR);
+        Log::record("netmodule http_post_data errno={$net_errno} err={$err}  url={$url}",Log::ERR);
     }
     curl_close($ci);
 
@@ -157,7 +157,7 @@ function https_request($url, $params = array(), $method = 'GET', $multi = false,
     if($response === false) {
         $err = curl_error($ci);
         $net_errno  = curl_errno($ci);
-        Log::record("netmodule https_request errno={$net_errno} err={$err}",Log::ERR);
+        Log::record("netmodule https_request errno={$net_errno} err={$err} url={$url}",Log::ERR);
     }
     curl_close($ci);
 

+ 1 - 1
helper/refill/api/xyz/feinimoshu/RefillOil.php

@@ -31,7 +31,7 @@ class RefillOil extends refill\IRefillPhone
     }
 
 
-    public function add($card_no, $card_type,$amount,$input,&$net_errno = 0): array
+    public function add($card_no, $card_type,$amount,$input,&$net_errno = 0)
     {
         $order_sn = $input['order_sn'];
         $params = $this->req_params($card_no,$card_type,$amount,$order_sn);

+ 1 - 1
helper/refill/api/xyz/feinimoshu_hf/RefillPhone.php

@@ -26,7 +26,7 @@ class RefillPhone extends refill\IRefillPhone
     }
 
 
-    public function add($card_no, $card_type,$amount,$input,&$net_errno = 0): array
+    public function add($card_no, $card_type,$amount,$input,&$net_errno = 0)
     {
         $order_sn = $input['order_sn'];
         $params = $this->req_params($card_no,$amount,$order_sn);