@@ -511,7 +511,8 @@ return array
'option' => array
(
'cdate' => array('yes', '<='),
- 'status' => 'yes',
+ 'status' => array('yes', 'in'),
+ 'withdraw' => 'yes',
'notice' => 'yes',
'state' => 1,
),
@@ -6,6 +6,21 @@ use Dever;
class Cron
{
+ # 获取7天后完成的订单 准备分账
+ public function yspay()
+ {
+ $time = time();
+ $where['status'] = '5,6';
+ $where['cdate'] = $time - 7*86400;
+ $order = Dever::db('shop/sell_order')->getDataByTime($where);
+
+ print_r($order);die;
+ if ($order) {
+ }
public function setGoodsStatus_api()
$goods = Dever::db('goods/info')->select();