lvhao há 1 mês atrás
pai
commit
0760023772
1 ficheiros alterados com 2 adições e 1 exclusões
  1. 2 1
      core/CoreApp/models/Model_api.php

+ 2 - 1
core/CoreApp/models/Model_api.php

@@ -757,7 +757,7 @@ function __construct(){
 			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 			curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,1800000);
 			$res = curl_exec($ch);
-
+			curl_close($ch);
 			$this->logic_ding->sendToDing("shopfiy的运单同步第一步".json_encode($post)."|".$res);
 
 			$a = json_decode($res,true);
@@ -801,6 +801,7 @@ function __construct(){
 			curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
 			curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,1800000);
 			$res = curl_exec($ch);
+			curl_close($ch);
 			$this->logic_ding->sendToDing("shopfiy的运单同步第二步".json_encode($post)."|".$res);