30 lines
735 B
PHP
30 lines
735 B
PHP
<?php
|
|
/**
|
|
* Created by PhpStorm.
|
|
* Author:
|
|
* Date: 2017/2/28
|
|
* Time: 上午10:35
|
|
* comment:订单支付类
|
|
*/
|
|
|
|
namespace app\frontend\modules\order\services\behavior;
|
|
|
|
use app\common\events\order\AfterOrderPaidImmediatelyEvent;
|
|
use app\common\models\Order;
|
|
use app\Jobs\OrderPaidEventQueueJob;
|
|
use Illuminate\Foundation\Bus\DispatchesJobs;
|
|
|
|
class OrderPay extends ChangeStatusOperation
|
|
{
|
|
use DispatchesJobs;
|
|
protected $statusBeforeChange = [ORDER::WAIT_PAY];
|
|
protected $statusAfterChanged = ORDER::WAIT_SEND;
|
|
protected $name = '支付';
|
|
protected $time_field = 'pay_time';
|
|
protected $past_tense_class_name = 'OrderPaid';
|
|
|
|
protected function _fireEvent()
|
|
{
|
|
$this->firePaidEvent();
|
|
}
|
|
} |