Skip to content
This repository has been archived by the owner on May 13, 2022. It is now read-only.

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
voidbytes committed May 8, 2022
1 parent 99283a4 commit 2107ba9
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/monitor/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -198,6 +198,9 @@ func CheckStock(page int, keyWords []Keyword) (isSucccess bool, isMore bool, pro
totalGoods = 0
for _, product := range productsList {
status := product.(map[string]interface{})["status"]
if status == nil {
continue
}
if int(status.(float64)) != 1 {
continue
}
Expand Down

0 comments on commit 2107ba9

Please sign in to comment.