|
@@ -103,10 +103,14 @@ function __construct(){
|
|
$gnum = array();
|
|
$gnum = array();
|
|
foreach ($arr as $val)
|
|
foreach ($arr as $val)
|
|
{
|
|
{
|
|
|
|
+
|
|
$create_time = substr($val['create_time'],0,10)-$sjc;
|
|
$create_time = substr($val['create_time'],0,10)-$sjc;
|
|
if(isset($gnum[date('ymd',$create_time)]))
|
|
if(isset($gnum[date('ymd',$create_time)]))
|
|
{
|
|
{
|
|
$gnum[date('ymd',$create_time)] += 1;
|
|
$gnum[date('ymd',$create_time)] += 1;
|
|
|
|
+ // if($shop['id'] == 44){
|
|
|
|
+ // $this->logic_ding->sendToDing("测试获取TT订单-1-".date('ymd',$create_time)."-".$gnum[date('ymd',$create_time)]);
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
else
|
|
else
|
|
{
|
|
{
|
|
@@ -118,7 +122,7 @@ function __construct(){
|
|
}else{
|
|
}else{
|
|
$tmp_number_arr = explode("-",$info['number']);
|
|
$tmp_number_arr = explode("-",$info['number']);
|
|
//合并订单
|
|
//合并订单
|
|
- if(count($tmp_number_arr) == 4){
|
|
|
|
|
|
+ if(count($tmp_number_arr) == 5){
|
|
$num = $this->fullordertt->find_count('gtime = "'.date('Ymd',$create_time).'" and shop = "'.$shop['id'].'"');
|
|
$num = $this->fullordertt->find_count('gtime = "'.date('Ymd',$create_time).'" and shop = "'.$shop['id'].'"');
|
|
}else{
|
|
}else{
|
|
$num = array_pop($tmp_number_arr);
|
|
$num = array_pop($tmp_number_arr);
|
|
@@ -127,6 +131,9 @@ function __construct(){
|
|
|
|
|
|
}
|
|
}
|
|
$gnum[date('ymd',$create_time)] = $num+1;
|
|
$gnum[date('ymd',$create_time)] = $num+1;
|
|
|
|
+ // if($shop['id'] == 44){
|
|
|
|
+ // $this->logic_ding->sendToDing("测试获取TT订单-2-".date('ymd',$create_time)."-".$gnum[date('ymd',$create_time)]);
|
|
|
|
+ // }
|
|
}
|
|
}
|
|
$read[] = $this->get_read($val,$time,$shop,$cuy,$gnum[date('ymd',$create_time)],$dtc,$money,$int,$dtctitle,$pay,$typeclass,$ex,$sjc,$zjsku);
|
|
$read[] = $this->get_read($val,$time,$shop,$cuy,$gnum[date('ymd',$create_time)],$dtc,$money,$int,$dtctitle,$pay,$typeclass,$ex,$sjc,$zjsku);
|
|
}
|
|
}
|