This commit is contained in:
parent
1f51aeb783
commit
13a5f51c31
@ -120,6 +120,7 @@ func (c *CoachOutlet) Watch() {
|
|||||||
if !inventory.AllocationResetDate.IsZero() {
|
if !inventory.AllocationResetDate.IsZero() {
|
||||||
c.detail.AllocationResetDate = inventory.AllocationResetDate
|
c.detail.AllocationResetDate = inventory.AllocationResetDate
|
||||||
}
|
}
|
||||||
|
c.detail.Watch = true
|
||||||
if c.detail.Orderable {
|
if c.detail.Orderable {
|
||||||
c.detail.Watch = false
|
c.detail.Watch = false
|
||||||
c.detail.AllocationResetDate = time.Now()
|
c.detail.AllocationResetDate = time.Now()
|
||||||
@ -207,6 +208,7 @@ func (c *CoachOutlet) requestProductDetail(ctx context.Context) error {
|
|||||||
c.detail = resp.ProductData[0].Product()
|
c.detail = resp.ProductData[0].Product()
|
||||||
c.detail.Remark = c.cfg.Remark
|
c.detail.Remark = c.cfg.Remark
|
||||||
c.detail.Link = fmt.Sprintf("https://www.coachoutlet.com%s", c.detail.Link)
|
c.detail.Link = fmt.Sprintf("https://www.coachoutlet.com%s", c.detail.Link)
|
||||||
|
c.detail.Watch = true
|
||||||
if c.detail.Orderable {
|
if c.detail.Orderable {
|
||||||
c.detail.Watch = false
|
c.detail.Watch = false
|
||||||
if c.detail.AllocationResetDate.IsZero() {
|
if c.detail.AllocationResetDate.IsZero() {
|
||||||
|
Loading…
Reference in New Issue
Block a user