Skip to content

Commit

Permalink
fix: fix ttocr
Browse files Browse the repository at this point in the history
  • Loading branch information
starudream committed Sep 6, 2024
1 parent bf74596 commit 9a9e59d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pkg/geetest/tt.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,11 +48,11 @@ func TTKey() string {
}

func TTPoint(req *V3Param) (string, error) {
form := gh.MS{
query := gh.MS{
"appkey": gh.Ternary(req.Key != "", req.Key, tt.Key),
}
res, err := resty.ParseResp[*ttResp, *ttResp](
ttR().SetError(&ttResp{}).SetResult(&ttResp{}).SetFormData(form).Post("http://api.ttocr.com/api/points"),
ttR().SetError(&ttResp{}).SetResult(&ttResp{}).SetQueryParams(query).Get("http://api.ttocr.com/api/points"),
)
if err != nil {
return "-1", fmt.Errorf("[ttocr] %w", err)
Expand Down

0 comments on commit 9a9e59d

Please sign in to comment.