chore: 优化relay代码

This commit is contained in:
CalciumIon
2024-08-03 16:55:29 +08:00
parent 88ba8a840e
commit 8a9ff36fbf
2 changed files with 49 additions and 27 deletions

View File

@@ -184,7 +184,6 @@ func SetupContextForSelectedChannel(c *gin.Context, channel *model.Channel, mode
if channel == nil {
return
}
c.Set("channel", channel.Type)
c.Set("channel_id", channel.Id)
c.Set("channel_name", channel.Name)
c.Set("channel_type", channel.Type)