Files
xk-api-yii/common/handlers/ProductOrderPayedHandlerClass.php
2024-09-19 11:32:39 +08:00

27 lines
506 B
PHP

<?php
namespace common\handlers;
use common\jobs\ProductOrderSyncJob;
class ProductOrderPayedHandlerClass extends BaseProductOrderHandler
{
public function handle()
{
self::execute();
}
protected function execute()
{
$this->autoSync();
return $this;
}
public function autoSync()
{
// 订单自动同步任务
\Yii::$app->queue->push(new ProductOrderSyncJob([
'orderId' => $this->event->order->id,
]));
}
}