Update: 2026-06-25 18:39:01
This commit is contained in:
@@ -7,14 +7,14 @@ $sql = "SELECT
|
||||
notesForDriverService.note
|
||||
FROM
|
||||
phone_verification
|
||||
INNER JOIN -- نستخدم INNER JOIN لضمان جلب من لديهم ملاحظات فقط
|
||||
INNER JOIN
|
||||
`notesForDriverService`
|
||||
ON
|
||||
`notesForDriverService`.`phone` = `phone_verification`.`phone_number`
|
||||
WHERE
|
||||
`notesForDriverService`.`note` != 'delete'
|
||||
ORDER BY
|
||||
`phone_verification`.`created_at` DESC -- الترتيب حسب تاريخ التحقق لأنه العمود الموجود
|
||||
`phone_verification`.`created_at` DESC
|
||||
LIMIT 400;
|
||||
";
|
||||
|
||||
@@ -24,7 +24,6 @@ $stmt->execute();
|
||||
if ($stmt->rowCount() > 0) {
|
||||
$rows = $stmt->fetchAll(PDO::FETCH_ASSOC);
|
||||
|
||||
// فك تشفير أرقام الهواتف فقط للإخراج
|
||||
foreach ($rows as &$row) {
|
||||
if (!empty($row['phone'])) {
|
||||
$row['phone'] = $encryptionHelper->decryptData($row['phone']);
|
||||
@@ -42,4 +41,3 @@ if ($stmt->rowCount() > 0) {
|
||||
} else {
|
||||
jsonError("No Phone verified yet found");
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user