| 123456789101112131415161718192021222324252627282930 |
- <?php
- /**
- * Created by PhpStorm.
- * Author: 芸众商城 www.yunzshop.com
- * 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();
- }
- }
|