CommentGoods.php 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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\common\models\comment\CommentConfig;
  12. use app\frontend\modules\order\operations\OrderOperation;
  13. class CommentGoods extends OrderOperation
  14. {
  15. public function getApi()
  16. {
  17. return '';
  18. }
  19. public function getValue()
  20. {
  21. return static::GOODS_COMMENT;
  22. }
  23. public function getName()
  24. {
  25. return '评价';
  26. }
  27. public function enable()
  28. {
  29. $is_order_comment_entrance = CommentConfig::getSetConfig('is_order_comment_entrance');
  30. //未开启设置
  31. if (!$is_order_comment_entrance) {
  32. return false;
  33. }
  34. return true;
  35. // return $this->order->canRefund();
  36. }
  37. }