Update: 2026-08-07 02:58:47
This commit is contained in:
@@ -64,6 +64,15 @@ try {
|
||||
printFailure("Your account is temporarily suspended until $blockedUntil");
|
||||
exit;
|
||||
}
|
||||
|
||||
// تجميد سلامة — بلا TTL: لا ينتهي بالوقت بل برفع إنسان له.
|
||||
// سائق عليه بلاغ سلامة مفتوح لا يُسند له راكب جديد.
|
||||
$safetyHold = $redisLocation->get("driver:$driverId:safety_hold");
|
||||
if ($safetyHold) {
|
||||
error_log("[accept_ride] DriverID=$driverId مجمّد ببلاغ سلامة #$safetyHold — رُفض القبول");
|
||||
printFailure("Your account is under review. Please contact support.");
|
||||
exit;
|
||||
}
|
||||
}
|
||||
} catch (Throwable $eBlock) {
|
||||
error_log("[accept_ride] تعذّر فحص الإيقاف: " . $eBlock->getMessage());
|
||||
|
||||
Reference in New Issue
Block a user