ViewEquity.php 641 B

12345678910111213141516171819202122232425262728293031323334353637
  1. <?php
  2. /**
  3. * Created by PhpStorm.
  4. * User: shenyang
  5. * Date: 2018/8/3
  6. * Time: 下午5:06
  7. */
  8. namespace app\frontend\modules\order\operations\member;
  9. use app\frontend\modules\order\operations\OrderOperation;
  10. class ViewEquity extends OrderOperation
  11. {
  12. public function getApi()
  13. {
  14. return 'plugin.aggregation-cps.api.equity.order-detail';
  15. }
  16. public function getName()
  17. {
  18. return '查看卡券';
  19. }
  20. public function getValue()
  21. {
  22. return 51;
  23. }
  24. public function enable()
  25. {
  26. if ($this->order->plugin_id == 71) {
  27. return true;
  28. }
  29. return false;
  30. }
  31. }