修正在线状态

This commit is contained in:
2023-11-23 13:36:22 +08:00
parent 820fe50461
commit 10e7fe3a91
5 changed files with 19 additions and 209 deletions
+4 -3
View File
@@ -23,9 +23,10 @@ use Hyperf\Snowflake\Concern\Snowflake;
* @property int $age 年龄
* @property int $sex 性别(0:未知 1:男 2:女)
* @property string $avatar 头像
* @property string $login_ip 登陆ip
* @property int $is_online 是否在线(0:不在线 1:在线)
* @property string $last_login_at 最后登陆时间
* @property string $created_by 创建者id(后台用户表id null:自己注册)
* @property string $login_ip 登陆ip
* @property string $created_by 创建者id(后台用户表id,前台用户表id)
* @property \Carbon\Carbon $created_at 创建时间
* @property \Carbon\Carbon $updated_at 修改时间
*/
@@ -41,7 +42,7 @@ class User extends Model
/**
* The attributes that are mass assignable.
*/
protected array $fillable = ['user_id', 'user_name', 'user_account', 'mobile', 'wx_mobile', 'user_password', 'salt', 'user_type', 'user_status', 'register_method', 'age', 'sex', 'avatar', 'login_ip', 'last_login_at', 'created_by', 'created_at', 'updated_at'];
protected array $fillable = ['user_id', 'user_name', 'user_account', 'mobile', 'wx_mobile', 'user_password', 'salt', 'user_type', 'user_status', 'register_method', 'age', 'sex', 'avatar', 'is_online', 'last_login_at', 'login_ip', 'created_by', 'created_at', 'updated_at'];
protected string $primaryKey = "user_id";