From ce3a34947b010e77e6460952b705d621a92dd206 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=8E=8B=E6=AD=A3=E4=B8=9C?= Date: Thu, 28 Jan 2021 15:58:58 +0800 Subject: [PATCH] update cron_unpayed plugin module --- content/plugins/cron_unpayed/cron_unpayed.class.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/content/plugins/cron_unpayed/cron_unpayed.class.php b/content/plugins/cron_unpayed/cron_unpayed.class.php index cea586c9c..f8a521548 100644 --- a/content/plugins/cron_unpayed/cron_unpayed.class.php +++ b/content/plugins/cron_unpayed/cron_unpayed.class.php @@ -80,7 +80,8 @@ public function run() { ->where('order_status', OS_UNCONFIRMED) ->where('pay_status', PS_UNPAYED) ->where('shipping_status', SS_UNSHIPPED) - ->where(RC_DB::raw('add_time + '.$limit_time), '<=', $time) + //->where(RC_DB::raw('add_time + '.$limit_time), '<=', $time) + ->where('add_time', '<=', ($time - $limit_time)) ->take($limit_rows) ->get();