|
@@ -18,7 +18,7 @@ function sync_orders(){
|
18
|
18
|
//同步订单脚本
|
19
|
19
|
# 1.同步N分钟内所有订单
|
20
|
20
|
//$now = strtotime('2019-01-21 16:54:00');
|
21
|
|
- $time = date("Y-m-1", strtotime('-1 month'));
|
|
21
|
+ $time = date("Y-m-11", strtotime('-1 month'));
|
22
|
22
|
echo "\n\nCreate_time:".$time;
|
23
|
23
|
$etime = '';
|
24
|
24
|
|
|
@@ -26,7 +26,7 @@ function sync_orders(){
|
26
|
26
|
$time_type = 2;//按付款时间查
|
27
|
27
|
$tk_status = 0;//查询所有状态订单
|
28
|
28
|
|
29
|
|
- for($x=1;$x<145;$x++){
|
|
29
|
+ for($x=1;$x<73;$x++){
|
30
|
30
|
$position_index = '';//查下一页必要参数
|
31
|
31
|
$stime = !empty($etime) ? $etime : $time;
|
32
|
32
|
$dstr = $time.' '.($x*20).' minutes';
|
|
@@ -88,7 +88,7 @@ function sync_orders(){
|
88
|
88
|
if(!isset($orderDetail['pub_share_pre_fee'])) $orderDetail['pub_share_pre_fee'] = 0;
|
89
|
89
|
if(!isset($orderDetail['alipay_total_price'])) $orderDetail['alipay_total_price'] = 0;
|
90
|
90
|
|
91
|
|
- echo 'order_id:'.$orderDetail['trade_id'].'|| goods_id:'.$orderDetail['item_id'].'|| orderstatus:'.$orderDetail['tk_status'].'|| order_balance_at:'.$orderDetail['tk_earning_time'].'|| order_create_time:'.$orderDetail['tk_create_time'];
|
|
91
|
+ echo 'order_id:'.$orderDetail['trade_id'].'|| goods_id:'.$orderDetail['item_id'].'|| orderstatus:'.$orderDetail['tk_status'].'|| order_balance_at:'.$orderDetail['tk_earning_time'].'|| order_pay_time:'.$orderDetail['tb_paid_time'];;
|
92
|
92
|
if( DETAILDEBUG == 1){
|
93
|
93
|
echo 'orderDetail:';
|
94
|
94
|
var_dump($orderDetail);
|