Update: 2026-06-16 17:47:17

This commit is contained in:
Hamza-Ayed
2026-06-16 17:47:19 +03:00
parent 49899da6b2
commit b516fbc4ed
96 changed files with 6073 additions and 3187 deletions

View File

@@ -24,7 +24,8 @@ try {
printFailure("Failed to save record");
}
} catch (PDOException $e) {
printFailure("Database error: " . $e->getMessage());
error_log("[addPaymentToken] " . $e->getMessage());
printFailure("Database error");
}
function generateSecureToken($driverID, $amount) {

View File

@@ -98,6 +98,7 @@ try {
if ($con->inTransaction()) {
$con->rollBack();
}
printFailure("An error occurred: " . $e->getMessage());
error_log("add_s2s_reward: " . $e->getMessage());
printFailure("An error occurred");
}
?>

View File

@@ -16,7 +16,7 @@ function runCleanup($con, $deleteQuery, $tableName) {
echo "Cleanup completed for table: $tableName\n";
echo "Rows affected: " . $stmt->rowCount() . "\n\n";
} catch (Exception $e) {
echo "Error cleaning $tableName: " . $e->getMessage() . "\n\n";
echo "Error cleaning $tableName\n";
}
}

View File

@@ -62,6 +62,7 @@ try {
]);
} catch (Exception $e) {
printFailure("An error occurred: " . $e->getMessage());
error_log("[get_s2s_wallet_dashboard] " . $e->getMessage());
printFailure("An error occurred");
}
?>