| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- <?php
- namespace common\events\data\api;
- use common\components\BaseEvent;
- use common\fixtures\ListData;
- use common\enums\EventNameEnum;
- //商品详情显示渠道分红、渠道业绩内购折扣
- class GoodsDeductEvent extends BaseEvent
- {
- public $name = EventNameEnum::GOODS_DEDUCT_INFO;
- public $info = [];
- public $mall_id;
- public $user_id;
- public $goods_attr_id_arr;
- public function __construct($mall_id, $user_id, $goods_attr_id_arr)
- {
- parent::__construct($mall_id);
- $this->mall_id = $mall_id;
- $this->user_id = $user_id;
- $this->goods_attr_id_arr = $goods_attr_id_arr;
- }
- public function getInfo()
- {
- return $this->info;
- }
- /**
- * @return void
- */
- public function setInfo($info)
- {
- $this->info = $info;
- }
- /**
- * @return BaseOrderForm|boolean
- */
- public function getResultForm()
- {
- // if ($this->isError) return false;
- return $this->info;
- }
- }
|