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