ActEffectStatistics.php 820 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. <?php
  2. namespace app\common\model;
  3. /**
  4. * 活动效果统计模型
  5. * @package app\common\model
  6. */
  7. class ActEffectStatistics extends BaseModel
  8. {
  9. /*活动类型 start*/
  10. const ACT_TYPE_GROUP_BUY = 1;//拼团活动
  11. const ACT_TYPE_KJ = 2;//砍价活动
  12. const ACT_TYPE_DISCOUNT = 3;//N件X折活动
  13. const ACT_TYPE_MJ_SEND = 4;//满件送活动
  14. const ACT_TYPE_FULL_SEND = 5;//满就送活动
  15. const ACT_TYPE_MIAOSHA = 9;//秒杀活动
  16. const ACT_TYPE_GROUP_BUY_LB = 10;//拼团裂变活动
  17. /*活动类型 end*/
  18. protected $name = 'act_effect_statistics';
  19. /**
  20. * 获取记录
  21. * @param int $id
  22. * @param array $with
  23. * @return static
  24. */
  25. public static function detail(int $id, array $with = [])
  26. {
  27. return static::get($id, $with);
  28. }
  29. }