Update: 2026-06-11 13:47:39
This commit is contained in:
@@ -74,7 +74,7 @@ try {
|
||||
|
||||
// أ) Socket (إشعار السائق في التطبيق فوراً)
|
||||
$socketUrl = 'http://188.68.36.205:2021';
|
||||
$internalKeyPath = '/home/intaleq-api/.internal_socket_key';
|
||||
$internalKeyPath = '/home/siro-api/.internal_socket_key';
|
||||
$internalKey = file_exists($internalKeyPath) ? trim(file_get_contents($internalKeyPath)) : '';
|
||||
|
||||
$ch = curl_init($socketUrl);
|
||||
|
||||
@@ -41,7 +41,7 @@ try {
|
||||
|
||||
$driverID = $rideData['driver_id'];
|
||||
$status = $rideData['status'];
|
||||
$secretSalt = "Intaleq_Secure_Track_2025";
|
||||
$secretSalt = "Siro_Secure_Track_2025";
|
||||
$generatedToken = md5(trim(strval($rideID)) . trim(strval($driverID)) . $secretSalt);
|
||||
|
||||
if ($token !== $generatedToken) sendError("Invalid Token");
|
||||
|
||||
@@ -2,7 +2,7 @@
|
||||
// test_socket_dispatch.php
|
||||
|
||||
$socketUrl = "http://188.68.36.205:2021";
|
||||
$INTERNAL_KEY = trim(file_get_contents('/home/intaleq-api/.internal_socket_key'));
|
||||
$INTERNAL_KEY = trim(file_get_contents('/home/siro-api/.internal_socket_key'));
|
||||
|
||||
// جرّب Driver ID موجود عندك
|
||||
$driverId = 691;
|
||||
|
||||
Reference in New Issue
Block a user