Skip to content

Commit

Permalink
Merge branch 'main' of https://github.com/v03413/bepusdt
Browse files Browse the repository at this point in the history
  • Loading branch information
v03413 committed May 10, 2024
2 parents 7da251d + 6bef506 commit 4fb39a0
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions app/monitor/trade.go
Original file line number Diff line number Diff line change
Expand Up @@ -390,16 +390,17 @@ func getUsdtTrc20TransByTronGrid(_toAddress string) (gjson.Result, error) {

// 请求交易记录
resp, err := client.Do(req)
if resp.StatusCode != http.StatusOK {

return gjson.Result{}, fmt.Errorf("请求交易记录错误: StatusCode != 200")
}

if err != nil {

return gjson.Result{}, fmt.Errorf("请求交易记录错误: %w", err)
}

if resp.StatusCode != http.StatusOK {

return gjson.Result{}, fmt.Errorf("请求交易记录错误: StatusCode != 200")
}

// 获取响应记录
all, err := io.ReadAll(resp.Body)
if err != nil {
Expand Down

0 comments on commit 4fb39a0

Please sign in to comment.