GoodsDeductEvent.php 998 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. <?php
  2. namespace common\events\data\api;
  3. use common\components\BaseEvent;
  4. use common\fixtures\ListData;
  5. use common\enums\EventNameEnum;
  6. //商品详情显示渠道分红、渠道业绩内购折扣
  7. class GoodsDeductEvent extends BaseEvent
  8. {
  9. public $name = EventNameEnum::GOODS_DEDUCT_INFO;
  10. public $info = [];
  11. public $mall_id;
  12. public $user_id;
  13. public $goods_attr_id_arr;
  14. public function __construct($mall_id, $user_id, $goods_attr_id_arr)
  15. {
  16. parent::__construct($mall_id);
  17. $this->mall_id = $mall_id;
  18. $this->user_id = $user_id;
  19. $this->goods_attr_id_arr = $goods_attr_id_arr;
  20. }
  21. public function getInfo()
  22. {
  23. return $this->info;
  24. }
  25. /**
  26. * @return void
  27. */
  28. public function setInfo($info)
  29. {
  30. $this->info = $info;
  31. }
  32. /**
  33. * @return BaseOrderForm|boolean
  34. */
  35. public function getResultForm()
  36. {
  37. // if ($this->isError) return false;
  38. return $this->info;
  39. }
  40. }