mirror of
https://gitee.com/koogua/course-tencent-cloud.git
synced 2025-06-22 19:44:02 +08:00
* 更新版本号 * 完善后台今日统计,增加权限白名单,增加后台首页菜单,调整后台登录页样式 * Merge branch 'koogua/I1XFCF' of https://gitee.com/koogua/course-tencen… * 前台学习资料部分完成 * !2 后台运营统计合并 * 后台学习资料部分完成 * Merge branch 'master' into develop * Merge branch 'master' of https://github.com/xiaochong0302/course-tencent-cloud * 1.增加changelog.md * 1.简化部分路由地址 * Merge pull request #2 from xiaochong0302/dependabot/composer/symfony/h… * Bump symfony/http-foundation from 4.3.4 to 5.1.6
80 lines
979 B
PHP
80 lines
979 B
PHP
<?php
|
|
|
|
namespace App\Models;
|
|
|
|
class Online extends Model
|
|
{
|
|
|
|
/**
|
|
* 主键编号
|
|
*
|
|
* @var int
|
|
*/
|
|
public $id;
|
|
|
|
/**
|
|
* 用户编号
|
|
*
|
|
* @var int
|
|
*/
|
|
public $user_id;
|
|
|
|
/**
|
|
* 计划编号
|
|
*
|
|
* @var string
|
|
*/
|
|
public $date;
|
|
|
|
/**
|
|
* 客户端类型
|
|
*
|
|
* @var int
|
|
*/
|
|
public $client_type;
|
|
|
|
/**
|
|
* 客户端IP
|
|
*
|
|
* @var string
|
|
*/
|
|
public $client_ip;
|
|
|
|
/**
|
|
* 活跃时间
|
|
*
|
|
* @var int
|
|
*/
|
|
public $active_time;
|
|
|
|
/**
|
|
* 创建时间
|
|
*
|
|
* @var int
|
|
*/
|
|
public $create_time;
|
|
|
|
/**
|
|
* 更新时间
|
|
*
|
|
* @var int
|
|
*/
|
|
public $update_time;
|
|
|
|
public function getSource(): string
|
|
{
|
|
return 'kg_online';
|
|
}
|
|
|
|
public function beforeCreate()
|
|
{
|
|
$this->create_time = time();
|
|
}
|
|
|
|
public function beforeUpdate()
|
|
{
|
|
$this->update_time = time();
|
|
}
|
|
|
|
}
|