deleteCron([ ['event', '=', 'CronCouponEnd'] ]); $cron->addCron(2, 1, '优惠券过期自动关闭', 'CronCouponEnd', time(), 0); return success(); } catch (\Exception $e) { return error('', $e->getMessage()); } } }