From 228f685b11e20b8f659e4ecf8fc48a2a9fcee9e3 Mon Sep 17 00:00:00 2001 From: liuyu <33367671@qq.com> Date: Fri, 8 Jul 2022 18:15:50 +0800 Subject: [PATCH] =?UTF-8?q?=E5=90=8C=E6=AD=A5=E5=A2=9E=E9=87=8F=E8=AE=A2?= =?UTF-8?q?=E5=8D=95=E6=94=B9=E4=B8=BA5=E5=88=86=E9=92=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- model/mShop.php | 3 +-- queue/deal/sync_increment_orders.php | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/model/mShop.php b/model/mShop.php index 0701154..79e8bb1 100644 --- a/model/mShop.php +++ b/model/mShop.php @@ -32,7 +32,6 @@ class mShop extends mBase { } else { $uobj = new mUser(); $uid = $uobj->addUser(); -var_dump($uid); if (!$uid) { $this->setError('uid创建失败'); return false; @@ -68,7 +67,7 @@ var_dump($uid); // 同步增量订单开始时间 if ($date == date("Y-m-d")) { - $rdobj->lpush(_RQ_SYNC_INCREMENT_ORDERS, json_encode(array('name'=>$name, 'start_date'=>date("Y-m-d H:i:s"), 'end_date'=>date("Y-m-d H:i:s", strtotime("+30 minute"))))); + $rdobj->lpush(_RQ_SYNC_INCREMENT_ORDERS, json_encode(array('name'=>$name, 'start_date'=>date("Y-m-d H:i:s"), 'end_date'=>date("Y-m-d H:i:s", strtotime("+5 minute"))))); } } diff --git a/queue/deal/sync_increment_orders.php b/queue/deal/sync_increment_orders.php index 628603e..688a6a5 100644 --- a/queue/deal/sync_increment_orders.php +++ b/queue/deal/sync_increment_orders.php @@ -46,7 +46,7 @@ class syncIncrementOrders extends dealBase { } - $rdobj->lpush(_RQ_SYNC_INCREMENT_ORDERS, json_encode(array('name'=>$name, 'start_date'=>$end_date, 'end_date'=>date("Y-m-d H:i:s", strtotime($end_date." +30 minute"))))); + $rdobj->lpush(_RQ_SYNC_INCREMENT_ORDERS, json_encode(array('name'=>$name, 'start_date'=>$end_date, 'end_date'=>date("Y-m-d H:i:s", strtotime($end_date." +5 minute"))))); }