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