Consensus.php 708 B

12345678910111213141516171819202122232425262728293031323334353637383940414243
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: Administrator
  5. * Date: 2020/12/10
  6. * Time: 17:14
  7. */
  8. namespace app\backend\modules\refund\services\button;
  9. class Consensus extends RefundButtonBase
  10. {
  11. public function getApi()
  12. {
  13. return 'refund.vue-operation.consensus';
  14. }
  15. public function getName()
  16. {
  17. return '手动退款';
  18. }
  19. public function getValue()
  20. {
  21. return 2;
  22. }
  23. public function enable()
  24. {
  25. return $this->refund->isRefunding();
  26. }
  27. public function getType()
  28. {
  29. return self::TYPE_PRIMARY;
  30. }
  31. public function getDesc()
  32. {
  33. return '您用其他方式进行退款,或者退款金额为0时';
  34. }
  35. }