fix: do not detect quota field in error message (close #1276)

This commit is contained in:
JustSong 2024-04-05 12:11:50 +08:00
parent 4d61b9937b
commit 0bb7db0b44

View File

@ -46,9 +46,9 @@ func ShouldDisableChannel(err *relaymodel.Error, statusCode int) bool {
} else if strings.HasPrefix(err.Message, "This organization has been disabled.") {
return true
}
if strings.Contains(err.Message, "quota") {
return true
}
//if strings.Contains(err.Message, "quota") {
// return true
//}
if strings.Contains(err.Message, "credit") {
return true
}