修复token验证和左侧表单问题

This commit is contained in:
2025-08-19 17:48:53 +08:00
parent 1ceaeb9214
commit 2d44b8764d
39 changed files with 1461 additions and 554 deletions
+24
View File
@@ -22,4 +22,28 @@ use think\Model;
class AdminUser extends Model
{
// 设置表名
protected $name = 'admin_user';
// 设置主键
protected $pk = 'uid';
// 自动时间戳
protected $autoWriteTimestamp = true;
protected $createTime = 'create_time';
protected $updateTime = 'update_time';
// 字段类型转换
protected $type = [
'uid' => 'integer',
'sex' => 'integer',
'status' => 'integer',
'create_time' => 'integer',
'update_time' => 'integer'
];
// 允许写入的字段
protected $allowField = [
'account', 'password', 'name', 'avatar', 'phone', 'sex', 'qq', 'wechat', 'status'
];
}