dever 3 年之前
父节点
当前提交
d740d40afa
共有 2 个文件被更改,包括 17 次插入1 次删除
  1. 2 1
      app/shop/database/sell_order.php
  2. 15 0
      app/shop/lib/Cron.php

+ 2 - 1
app/shop/database/sell_order.php

@@ -511,7 +511,8 @@ return array
             'option' => array
             (
                 'cdate' => array('yes', '<='),
-                'status' => 'yes',
+                'status' => array('yes', 'in'),
+                'withdraw' => 'yes',
                 'notice' => 'yes',
                 'state' => 1,
             ),

+ 15 - 0
app/shop/lib/Cron.php

@@ -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();