|
@@ -10,7 +10,8 @@ function __construct(){
|
|
|
|
|
|
public function get_hq($name,$shopapi,$shop)
|
|
public function get_hq($name,$shopapi,$shop)
|
|
{
|
|
{
|
|
- $jqtime = ($name=='SuperNova')?24*3600:2*3600;
|
|
|
|
|
|
+ //$jqtime = ($name=='SuperNova')?24*3600:2*3600;
|
|
|
|
+ $jqtime = ($name=='SuperNova')?24*3600*2:(2*3600 + 24*3600);
|
|
$fromTime = time()-36*3600-$jqtime;//strtotime('yesterday')-$jqtime;//昨日0点+1小时保险无漏单
|
|
$fromTime = time()-36*3600-$jqtime;//strtotime('yesterday')-$jqtime;//昨日0点+1小时保险无漏单
|
|
$toTime = time();
|
|
$toTime = time();
|
|
if($name == 'SU')
|
|
if($name == 'SU')
|
|
@@ -52,7 +53,7 @@ function __construct(){
|
|
$header[] = 'Content-Type: application/json';
|
|
$header[] = 'Content-Type: application/json';
|
|
$header[] = 'Content-Length:'.strlen(json_encode($data));
|
|
$header[] = 'Content-Length:'.strlen(json_encode($data));
|
|
$info = $this->su_curl($data,'http://api.supernovawig.com/v1/order/list',$header);
|
|
$info = $this->su_curl($data,'http://api.supernovawig.com/v1/order/list',$header);
|
|
- $this->logic_ding->sendToDing("测试获取SU订单".$info);
|
|
|
|
|
|
+ //$this->logic_ding->sendToDing("测试获取SU订单".$info);
|
|
$result = json_decode($info,true);
|
|
$result = json_decode($info,true);
|
|
$thatDayOrder = array();
|
|
$thatDayOrder = array();
|
|
foreach ($result['data'] as $v)
|
|
foreach ($result['data'] as $v)
|
|
@@ -118,7 +119,7 @@ function __construct(){
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
|
|
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, FALSE);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
$res = curl_exec($ch);
|
|
$res = curl_exec($ch);
|
|
- $this->logic_ding->sendToDing("测试获取自建站订单".$res);
|
|
|
|
|
|
+ //$this->logic_ding->sendToDing("测试获取自建站订单".$res);
|
|
curl_close($ch);
|
|
curl_close($ch);
|
|
$res = json_decode($res,true);
|
|
$res = json_decode($res,true);
|
|
$thatDayOrder = array();
|
|
$thatDayOrder = array();
|
|
@@ -417,7 +418,7 @@ function __construct(){
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
|
|
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,1800000);
|
|
curl_setopt($ch,CURLOPT_CONNECTTIMEOUT,1800000);
|
|
$res = curl_exec($ch);
|
|
$res = curl_exec($ch);
|
|
- $this->logic_ding->sendToDing("测试获取magento订单".$res);
|
|
|
|
|
|
+ //$this->logic_ding->sendToDing("测试获取magento订单".$res);
|
|
curl_close($ch);
|
|
curl_close($ch);
|
|
if($res)
|
|
if($res)
|
|
{
|
|
{
|