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

Commit 2107ba9

Browse files
committed
fix bug
1 parent 99283a4 commit 2107ba9

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/monitor/check.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -198,6 +198,9 @@ func CheckStock(page int, keyWords []Keyword) (isSucccess bool, isMore bool, pro
198198
totalGoods = 0
199199
for _, product := range productsList {
200200
status := product.(map[string]interface{})["status"]
201+
if status == nil {
202+
continue
203+
}
201204
if int(status.(float64)) != 1 {
202205
continue
203206
}

0 commit comments

Comments
 (0)