fix: mj auto ban

This commit is contained in:
CalciumIon 2024-06-26 17:39:52 +08:00
parent 0df1df4fd4
commit 4d3b57e19b

View File

@ -545,7 +545,7 @@ func RelayMidjourneySubmit(c *gin.Context, relayMode int) *dto.MidjourneyRespons
common.SysError("get_channel_null: " + err.Error()) common.SysError("get_channel_null: " + err.Error())
} }
if channel.AutoBan != nil && *channel.AutoBan == 1 { if channel.AutoBan != nil && *channel.AutoBan == 1 {
model.UpdateChannelStatusById(midjourneyTask.ChannelId, 2) model.UpdateChannelStatusById(midjourneyTask.ChannelId, 2, "No available account instance")
} }
} }
if midjResponse.Code != 1 && midjResponse.Code != 21 && midjResponse.Code != 22 { if midjResponse.Code != 1 && midjResponse.Code != 21 && midjResponse.Code != 22 {