|
|
@@ -131,7 +131,7 @@ function __construct(){
|
|
|
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
|
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($post));
|
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
|
- curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,1800000);
|
|
|
+ curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,600);
|
|
|
$res = curl_exec($ch);
|
|
|
//$this->logic_ding->sendToDing("独立站获取订单的店铺执行请求参数【".$name."】".json_encode($post));
|
|
|
//$this->logic_ding->sendToDing("独立站获取订单的店铺执行获取信息".$res);
|
|
|
@@ -531,8 +531,8 @@ function __construct(){
|
|
|
curl_setopt($ch, CURLOPT_BINARYTRANSFER, 1);
|
|
|
curl_setopt($ch, CURLOPT_POSTFIELDS,http_build_query($post));
|
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
|
- curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,1800000);
|
|
|
-
|
|
|
+ curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,600);
|
|
|
+ $res = curl_exec($ch);
|
|
|
//$this->logic_ding->sendToDing("测试获取magento订单".$res);
|
|
|
curl_close($ch);
|
|
|
if($res)
|