VisitRecord.php 516 B

12345678910111213141516171819202122232425262728
  1. <?php
  2. namespace app\common\model;
  3. /**
  4. * 访问统计模型
  5. * @package app\common\model
  6. */
  7. class VisitRecord extends BaseModel
  8. {
  9. // visit_type 页面来源 0-首页访问数据 1-拼团活动 2-砍价活动 3-渠道推广 4-商品详情页
  10. protected $name = 'visit_record';
  11. /**
  12. * 获取记录
  13. * @param int $id
  14. * @param array $with
  15. * @return static
  16. */
  17. public static function detail(int $id, array $with = [])
  18. {
  19. return static::get($id, $with);
  20. }
  21. }