From 438782a84663e8a8c0cdab8555dabda34865ae06 Mon Sep 17 00:00:00 2001 From: 13146336667 <33367671@qq.com> Date: Thu, 11 Aug 2022 18:52:17 +0800 Subject: [PATCH] queue/crontab/sync_push_data.php --- queue/crontab/sync_push_data.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/queue/crontab/sync_push_data.php b/queue/crontab/sync_push_data.php index e11a0f2..3d49d76 100644 --- a/queue/crontab/sync_push_data.php +++ b/queue/crontab/sync_push_data.php @@ -36,6 +36,10 @@ $obj->writeLog('pdd', 'sync_push_data.log', $info['pdp_modified']); $obj->writeLog('pdd', 'sync_push_data.log', $start."|".$end); $list = $this->selectAll('pdp_tb_trade', array('sql'=>'`pdp_modified` >=? and `pdp_modified` <= ?', 'vals'=>array($start, $end)), 'pdp_modified desc'); + if (empty($list)) { +$obj->writeLog('pdd', 'sync_push_data.log', 'empty list'); + return true; + } foreach ($list as $info) { if (empty($info['pdp_response'])) continue;