CommentAdditional.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * Name: 芸众商城系统
  5. * Author: 广州市芸众信息科技有限公司
  6. * Profile: 广州市芸众信息科技有限公司位于国际商贸中心的广州,专注于移动电子商务生态系统打造,拥有芸众社交电商系统、区块链数字资产管理系统、供应链管理系统、电子合同等产品/服务。官网 :www.yunzmall.com www.yunzshop.com
  7. * Date: 2022/1/13
  8. * Time: 16:45
  9. */
  10. namespace app\frontend\modules\order\operations\member;
  11. use app\frontend\modules\order\operations\OrderOperation;
  12. class CommentAdditional extends OrderOperation
  13. {
  14. public function getApi()
  15. {
  16. return '';
  17. }
  18. public function getValue()
  19. {
  20. return static::ADDITIONAL_COMMENT;
  21. }
  22. public function getName()
  23. {
  24. return '追评';
  25. }
  26. public function enable()
  27. {
  28. //商城关闭退款按钮
  29. if (!\Setting::get('shop.trade.refund_status')) {
  30. return false;
  31. }
  32. //商品开启不可退款
  33. if ($this->order->no_refund) {
  34. return false;
  35. }
  36. return $this->order->canRefund();
  37. }
  38. }