fix: 修复被禁用的渠道无法测试的问题

This commit is contained in:
CaIon
2025-07-31 10:56:51 +08:00
parent f20b558e22
commit 196bafff03
2 changed files with 19 additions and 2 deletions

View File

@@ -332,8 +332,11 @@ func TestChannel(c *gin.Context) {
}
channel, err := model.CacheGetChannel(channelId)
if err != nil {
common.ApiError(c, err)
return
channel, err = model.GetChannelById(channelId, true)
if err != nil {
common.ApiError(c, err)
return
}
}
//defer func() {
// if channel.ChannelInfo.IsMultiKey {