|
1234567891011121314151617181920212223242526272829303132333435363738 |
- <?php
-
-
- namespace app\model\user;
-
- use crmeb\basic\BaseModel;
- use crmeb\traits\ModelTrait;
-
- /**
- * Class UserVisit
- * @package app\model\user
- */
- class UserVisit extends BaseModel
- {
- use ModelTrait;
-
- /**
- * 数据表主键
- * @var string
- */
- protected $pk = 'id';
-
- /**
- * 模型名称
- * @var string
- */
- protected $name = 'user_visit';
-
- /**
- * 访问来源搜索器
- * @param $query
- * @param $value
- */
- public function searchChannelTypeAttr($query, $value)
- {
- if ($value != '') $query->where('channel_type', $value);
- }
- }
|