Update: 2026-06-11 13:47:39
This commit is contained in:
@@ -5,7 +5,7 @@ require_once __DIR__ . '/../../connect.php';
|
||||
$id = filterRequest("id");
|
||||
|
||||
// استقبال بيانات شام كاش من التطبيق
|
||||
$accountBank = filterRequest("accountBank"); // الاسم (مثال: intaleq)
|
||||
$accountBank = filterRequest("accountBank"); // الاسم (مثال: siro)
|
||||
$bankCode = filterRequest("bankCode"); // الكود الطويل (مثال: 80f23afe...)
|
||||
|
||||
// التحقق من وصول البيانات المطلوبة
|
||||
|
||||
@@ -46,7 +46,7 @@ if (!move_uploaded_file($file['tmp_name'], $uploadPath)) {
|
||||
exit;
|
||||
}
|
||||
|
||||
$imageUrl = "https://intaleq.xyz/intaleq/auth/uploads/documents/" . $uniqueName ;
|
||||
$imageUrl = "https://intaleq.xyz/siro/auth/uploads/documents/" . $uniqueName ;
|
||||
$imageData = file_get_contents($uploadPath);
|
||||
$imageBase64 = base64_encode($imageData);
|
||||
|
||||
|
||||
@@ -87,7 +87,7 @@ if (!defined('BASE_URL')) {
|
||||
}
|
||||
|
||||
// ⚙️ مسار الرابط العام (عدّل المسار حسب نشر مشروعك)
|
||||
$publicPath = "/intaleq/auth/uploads/documents/" . $uniqueName;
|
||||
$publicPath = "/siro/auth/uploads/documents/" . $uniqueName;
|
||||
$imageUrl = rtrim(BASE_URL, '/') . $publicPath;
|
||||
|
||||
// ✅ نتيجة نهائية: فقط رابط الصورة وبعض البيانات المفيدة
|
||||
|
||||
@@ -14,7 +14,7 @@ $redirectUri = 'https://api.tripz-egypt.com/tripz/auth/syria/auth_proxy.php'; //
|
||||
|
||||
// 3. APP CONFIGURATION: Your Flutter app's custom URI scheme
|
||||
// This is how the browser will redirect back to your app.
|
||||
$appRedirectScheme = 'intaleqapp://auth'; // e.g., myapp://auth
|
||||
$appRedirectScheme = 'siroapp://auth'; // e.g., myapp://auth
|
||||
|
||||
// Create a new Google Client object
|
||||
$client = new Google_Client();
|
||||
|
||||
@@ -337,7 +337,7 @@ $pwdHashed = password_hash($rawSecret, PASSWORD_DEFAULT);
|
||||
|
||||
/* ================== 11) Notification ================== */
|
||||
try {
|
||||
$fcmSendUrl = 'https://api.intaleq.xyz/intaleq/ride/firebase/send_fcm.php';
|
||||
$fcmSendUrl = 'https://api.intaleq.xyz/siro/ride/firebase/send_fcm.php';
|
||||
|
||||
$driverFullName = $raw_first_name . ' ' . $raw_last_name;
|
||||
$notificationTitle = 'تسجيل سائق جديد';
|
||||
|
||||
@@ -40,8 +40,10 @@ $otp = (string)rand(100, 999);
|
||||
$nabehUrl = 'https://otp.intaleqapp.com/api/request-otp.php';
|
||||
$appKey = getenv('NABEH_OTP_APP_KEY');
|
||||
|
||||
$phoneWithPlus = (strpos($receiver, '+') === 0) ? $receiver : '+' . $receiver;
|
||||
|
||||
$payload = [
|
||||
'phone' => $receiver,
|
||||
'phone' => $phoneWithPlus,
|
||||
'device_type' => 'android',
|
||||
'method' => 'whatsapp',
|
||||
'code' => $otp
|
||||
|
||||
@@ -52,8 +52,10 @@ $otp = (string)rand(100, 999);
|
||||
$nabehUrl = 'https://otp.intaleqapp.com/api/request-otp.php';
|
||||
$appKey = getenv('NABEH_OTP_APP_KEY');
|
||||
|
||||
$phoneWithPlus = (strpos($receiver, '+') === 0) ? $receiver : '+' . $receiver;
|
||||
|
||||
$payload = [
|
||||
'phone' => $receiver,
|
||||
'phone' => $phoneWithPlus,
|
||||
'device_type' => 'android',
|
||||
'method' => 'whatsapp',
|
||||
'code' => $otp
|
||||
|
||||
@@ -19,7 +19,7 @@ $surveyMessage = [
|
||||
"text" => "استطلاع رأي سريع 🌟"
|
||||
],
|
||||
"body" => [
|
||||
"text" => "هل كانت تجربة التسجيل في تطبيق *انطلق* سهلة بالنسبة لك؟\n\n👇 اضغط أحد الخيارات:"
|
||||
"text" => "هل كانت تجربة التسجيل في تطبيق *سيرو* سهلة بالنسبة لك؟\n\n👇 اضغط أحد الخيارات:"
|
||||
],
|
||||
"footer" => [
|
||||
"text" => "للتواصل: +962 7XXXXXXX - رابط التطبيق: https://intaleq.xyz"
|
||||
|
||||
@@ -10,7 +10,7 @@ const MAX_FILE_MB = 5;
|
||||
const ALLOWED_MIMES = ['image/jpeg','image/png','image/webp']; // فقط صور
|
||||
const UPLOAD_ROOT = __DIR__ . "/../../private_uploads"; // مجلد خاص (غير عام)
|
||||
const SIGN_SECRET = getenv('SECRET_KEY_HMAC'); // غيّرها واقرأها من .env
|
||||
const PUBLIC_BASE = 'https://syria.intaleq.xyz/intaleq'; // الدومين العلني
|
||||
const PUBLIC_BASE = 'https://syria.intaleq.xyz/siro'; // الدومين العلني
|
||||
const SIGNED_TTL_SEC = 172800; // 2 days = 60*60*24
|
||||
|
||||
// أنشئ مجلد الرفع إن لم يكن موجودًا
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<?php
|
||||
// File: verify_otp.php (with enhanced logging)
|
||||
// intaleq_v1/auth/token_passenger
|
||||
// siro_v1/auth/token_passenger
|
||||
require_once __DIR__ . '/../../connect.php';
|
||||
|
||||
// --- Start of Script Execution ---
|
||||
|
||||
Reference in New Issue
Block a user