定时任务添加日志
This commit is contained in:
parent
5032e5cbfa
commit
8e4dd95120
@ -9,6 +9,7 @@ use app\common\model\system\merchant\Merchant;
|
||||
use app\common\model\user\UserBill;
|
||||
use crmeb\interfaces\ListenerInterface;
|
||||
use crmeb\services\TimerService;
|
||||
use think\facade\Log;
|
||||
|
||||
/**
|
||||
* 定时任务:激活商户补贴
|
||||
@ -18,7 +19,8 @@ class ActivateConsumptionListen extends TimerService implements ListenerInterfac
|
||||
|
||||
public function handle($event): void
|
||||
{
|
||||
$this->tick(1000 * 60 * 10, function () {
|
||||
$this->tick(1000 * 60, function () {
|
||||
Log::info('定时任务:激活商户补贴');
|
||||
$couponId = StoreConsumption::where('type', StoreConsumption::TYPE_RECHARGE)->value('coupon_id');
|
||||
if (empty($couponId)) {
|
||||
return;
|
||||
|
Loading…
x
Reference in New Issue
Block a user