Skip to content

Commit

Permalink
feat:add agent and log file
Browse files Browse the repository at this point in the history
  • Loading branch information
mikumifa committed Nov 26, 2024
1 parent 4093996 commit fb4f986
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions internal/app/search.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import (
"github.com/mikumifa/BiliShareMall/internal/util"
"github.com/patrickmn/go-cache"
"github.com/rs/zerolog/log"
"time"
)

type C2CItemListVO struct {
Expand Down Expand Up @@ -99,5 +100,6 @@ func (a *App) CheckItemStatus(id int64, cookiesStr string) (bool, error) {
var resp domain.CheckResponse
err = client.SendRequest(http.POST, "https://mall.bilibili.com/magic-c/c2c/order/info?platform=h5", data, &resp)
a.c.Set(fmt.Sprintf("check:%d", id), resp.Code != 60000002, cache.DefaultExpiration)
time.Sleep(1 * time.Second)
return resp.Code != 60000002, nil
}

0 comments on commit fb4f986

Please sign in to comment.