[游戏管理]用户管理

This commit is contained in:
2026-04-15 10:19:30 +08:00
parent 66c14eacb3
commit 7b002c9410
11 changed files with 386 additions and 28 deletions

View File

@@ -27,9 +27,14 @@ class GameUser extends Model
return is_null($value) ? null : (float)$value;
}
public function channel(): \think\model\relation\BelongsTo
{
return $this->belongsTo(\app\common\model\Channel::class, 'channel_id', 'id');
}
public function gameChannel(): \think\model\relation\BelongsTo
{
return $this->belongsTo(\app\common\model\GameChannel::class, 'game_channel_id', 'id');
return $this->channel();
}
public function admin(): \think\model\relation\BelongsTo