Different expired message

This commit is contained in:
iBNu Maksum 2025-03-11 12:29:46 +07:00
parent 78e1e2f989
commit e3c173bea4
No known key found for this signature in database
GPG Key ID: 7FC82848810579E5

View File

@ -89,7 +89,13 @@ foreach ($d as $ds) {
// Send notification and update user status
try {
echo Message::sendPackageNotification($c, $u['namebp'], $p['price'], $textExpired, $config['user_notification_expired']) . "\n";
echo Message::sendPackageNotification(
$c,
$u['namebp'],
$p['price'],
Message::getMessageType($p['type'], $textExpired),
$config['user_notification_expired']
) . "\n";
$u->status = 'off';
$u->save();
} catch (Throwable $e) {