Refunding.php 742 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: shenyang
  5. * Date: 2018/8/2
  6. * Time: 下午5:51
  7. */
  8. namespace app\frontend\modules\order\operations\member;
  9. use app\frontend\modules\order\operations\OrderOperation;
  10. use app\frontend\modules\refund\models\RefundApply;
  11. class Refunding extends OrderOperation
  12. {
  13. public function getApi()
  14. {
  15. return 'refund.detail';
  16. }
  17. public function getValue()
  18. {
  19. return static::REFUND_INFO;
  20. }
  21. public function getName()
  22. {
  23. return '售后中';
  24. }
  25. public function enable()
  26. {
  27. //2018-8-30 租赁订单不能退款
  28. if ($this->order->plugin_id == 40) {
  29. return false;
  30. }
  31. return $this->order->isRefunding();
  32. }
  33. }