This commit is contained in:
parent
f882070b22
commit
f85e44d69a
@ -110,6 +110,9 @@ func (c *CoachOutlet) Watch() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *CoachOutlet) getInventory() bool {
|
func (c *CoachOutlet) getInventory() bool {
|
||||||
|
if c.detail == nil {
|
||||||
|
return false
|
||||||
|
}
|
||||||
// 请求
|
// 请求
|
||||||
subCtx, cancel := context.WithTimeout(c.ctx, time.Minute*5)
|
subCtx, cancel := context.WithTimeout(c.ctx, time.Minute*5)
|
||||||
inventory, err := c.requestProductInventory(subCtx)
|
inventory, err := c.requestProductInventory(subCtx)
|
||||||
|
Loading…
Reference in New Issue
Block a user