lawsons
This commit is contained in:
parent
d181baddec
commit
0b33ceb4f3
|
|
@ -294,7 +294,7 @@ export class LawsonsProductBid extends ProductBid {
|
||||||
// Nếu giá hiện tại cao hơn giá mình đã đặt, và reversePrice vẫn trong giới hạn cho phép, và đang bị outbid thì sẽ đặt giá tiếp
|
// Nếu giá hiện tại cao hơn giá mình đã đặt, và reversePrice vẫn trong giới hạn cho phép, và đang bị outbid thì sẽ đặt giá tiếp
|
||||||
if (reversePrice <= this.max_price + this.plus_price && isOutBid && currentBidAmount <= this.max_price + this.plus_price && this.max_price != maxBidAmount) {
|
if (reversePrice <= this.max_price + this.plus_price && isOutBid && currentBidAmount <= this.max_price + this.plus_price && this.max_price != maxBidAmount) {
|
||||||
console.log(`⚠️ [${this.id}] Outbid detected. Reverse price acceptable. Placing a new bid...`);
|
console.log(`⚠️ [${this.id}] Outbid detected. Reverse price acceptable. Placing a new bid...`);
|
||||||
// await this.handlePlaceBid();
|
await this.handlePlaceBid();
|
||||||
} else {
|
} else {
|
||||||
console.log(`✅ [${this.id}] No bid needed. Conditions not met.`);
|
console.log(`✅ [${this.id}] No bid needed. Conditions not met.`);
|
||||||
}
|
}
|
||||||
|
|
@ -359,7 +359,7 @@ export class LawsonsProductBid extends ProductBid {
|
||||||
await this.gotoLink();
|
await this.gotoLink();
|
||||||
}
|
}
|
||||||
|
|
||||||
// await this.handlePlaceBid();
|
await this.handlePlaceBid();
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(`🚨 [${this.id}] Error navigating the page: ${error}`);
|
console.error(`🚨 [${this.id}] Error navigating the page: ${error}`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue