Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
spiritLHLS committed Jun 21, 2024
1 parent a30fc42 commit b7fee55
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tw/BahamutAnime.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ func BahamutAnime(c *http.Client) model.Result {
Deviceid string `json:"deviceid"`
}
if err := json.Unmarshal(b, &res); err != nil {
if strings.Contains(body, "Just a moment") {
if strings.Contains(body, "Just a moment") || strings.Contains(body, "系統異常回報") {
return model.Result{Name: name, Status: model.StatusNo, Info: "Banned by cloudflare"}
}
return model.Result{Name: name, Status: model.StatusErr, Err: err}
Expand Down
3 changes: 2 additions & 1 deletion tw/tw_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@ package tw

import (
"fmt"
"github.com/oneclickvirt/UnlockTests/utils"
"testing"

"github.com/oneclickvirt/UnlockTests/utils"
)

func Test(t *testing.T) {
Expand Down

0 comments on commit b7fee55

Please sign in to comment.