Browse Source

Merge pull request 'queue/crontab/sync_push_data.php' (#17) from 20220811_sync_push_data into master

Reviewed-on: #17
pull/19/head
超级管理员 3 years ago
parent
commit
134b152a08
  1. 4
      queue/crontab/sync_push_data.php

4
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;

Loading…
Cancel
Save