fetch('apply-lastexectime',$lastExecTime); if($lastExecTime && ($lastExecTime+self::intervalTime)>self::$now) { return false; } base_kvstore::instance('console/vop/purchase')->store('apply-lastexectime', self::$now); //获取唯品会店铺 $shopObj = app::get('ome')->model('shop'); $shopList = $shopObj->getList('shop_id, shop_bn, name, config', array('node_type'=>'vop', 'node_id|noequal'=>'', 'tbbusiness_type'=>'jit')); if(empty($shopList)) { return false; } foreach ($shopList as $key => $shop_info) { $config = @unserialize($shop_info['config']); if (!$config || $config['download_jit_auto'] != 'yes') { continue; } // 组织数据 $month_time = strtotime('-1 month'); $params = array( //'st_sell_st_time' => date('Y-m-d H:i:s', $month_time), ); kernel::single('vop_purchase_order')->getPullList($params, $shop_info['shop_id']); } return true; } }