OrderReceive.php 789 B

123456789101112131415161718192021222324252627282930
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Author: 芸众商城 www.yunzshop.com
  5. * Date: 2017/2/28
  6. * Time: 上午10:57
  7. * comment:订单收货类
  8. */
  9. namespace app\frontend\modules\order\services\behavior;
  10. use app\common\events\order\AfterOrderReceivedImmediatelyEvent;
  11. use app\common\models\Order;
  12. use app\Jobs\OrderReceivedEventQueueJob;
  13. use Illuminate\Foundation\Bus\DispatchesJobs;
  14. class OrderReceive extends ChangeStatusOperation
  15. {
  16. use DispatchesJobs;
  17. protected $statusBeforeChange = [ORDER::WAIT_RECEIVE];
  18. protected $statusAfterChanged = ORDER::COMPLETE;
  19. protected $name = '收货';
  20. protected $time_field = 'finish_time';
  21. protected $past_tense_class_name = 'OrderReceived';
  22. protected function _fireEvent()
  23. {
  24. $this->fireReceivedEvent();
  25. }
  26. }