The following changes were made by the replace_file_content tool to: /root/aadharbot/modules/pay/controllers/paymentController.js. If relevant, proactively run terminal commands to execute this code for the USER. Don't ask for permission.
[diff_block_start]
@@ -73,9 +73,9 @@
const currentCredits = Number(userRes.rows[0].credits || 0);
if (currentCredits >= amount) {
const planDurations = {
- 'daily': 24 * 60 * 60 * 1000,
- 'weekly': 7 * 24 * 60 * 60 * 1000,
- 'monthly': 30 * 24 * 60 * 60 * 1000,
+ 'daily': 2 * 24 * 60 * 60 * 1000, // 1 Day + 1 Day Extra Offer = 2 Days
+ 'weekly': 10 * 24 * 60 * 60 * 1000, // 7 Days + 3 Days Extra Offer = 10 Days
+ 'monthly': 40 * 24 * 60 * 60 * 1000, // 30 Days + 10 Days Extra Offer = 40 Days
'2months': 60 * 24 * 60 * 60 * 1000,
'yearly': 365 * 24 * 60 * 60 * 1000,
'lifetime': 10 * 365 * 24 * 60 * 60 * 1000
@@ -82,6 +82,6 @@
- const duration = planDurations[planType] || (30 * 24 * 60 * 60 * 1000);
+ const duration = planDurations[planType] || (40 * 24 * 60 * 60 * 1000);
const days = Math.round(duration / (24 * 60 * 60 * 1000));
- const durationLabel = `${days} Days (${planLabel})`;
+ const durationLabel = `${days} Days (${planLabel} + Offer)`;
const planExpiresAt = new Date(Date.now() + duration);
const planExpiryStr = planExpiresAt.toLocaleString('en-IN', { timeZone: 'Asia/Kolkata' });
@@ -104,7 +104,7 @@
).catch(() => {});
return ctx.reply(`✅ Payment Successful! (Paid from Wallet)\n\n` +
- `💎 You have successfully purchased the ${planLabel} Plan for ₹${amount}.\n` +
+ `💎 You have successfully purchased the ${planLabel} Plan (${days} Days - Offer Applied 🎁) for ₹${amount}.\n` +
`⏳ Plan Expires: ${planExpiryStr}\n\n` +
`Enjoy your unlimited searches!`, { parse_mode: 'HTML' });
}
[diff_block_end]
Please note that the above snippet only shows the MODIFIED lines from the last change. It shows up to 3 lines of unchanged lines before and after the modified lines. The actual file contents may have many more lines not shown.