调试逾期提醒

This commit is contained in:
luofei 2023-07-12 14:06:24 +08:00
parent 49c9af71ad
commit e1dfafe583

View File

@ -6,13 +6,15 @@ use app\common\model\store\order\StoreOrderInterest;
use crmeb\interfaces\ListenerInterface; use crmeb\interfaces\ListenerInterface;
use crmeb\jobs\SendSmsJob; use crmeb\jobs\SendSmsJob;
use crmeb\services\TimerService; use crmeb\services\TimerService;
use think\facade\Log;
use think\facade\Queue; use think\facade\Queue;
class AutoCheckCreditBuyListen extends TimerService implements ListenerInterface class AutoCheckCreditBuyListen extends TimerService implements ListenerInterface
{ {
public function handle($event): void public function handle($event): void
{ {
$tomorrow = strtotime('tomorrow 14:05:00'); Log::info(__FUNCTION__ . '监听到信用购订单自动结算');
$tomorrow = strtotime('tomorrow 14:08:00');
$time = ($tomorrow - time()) * 1000; $time = ($tomorrow - time()) * 1000;
$this->tick($time, function () { $this->tick($time, function () {
request()->clearCache(); request()->clearCache();