feat: توجيه كل النداءات إلى api.intaleqapp.com وطيّ تبديل الدول
⚠️ الطيّ ضرورة أمان لا ترتيب: كل عائلة سيرفرات في links.dart كانت switch بأربعة فروع (Syria · Egypt · Jordan · default)، وفروع سوريا ومصر تشير إلى **سيرفرات سيرو الإنتاجية** (api-syria.siromove.com وغيرها). إبقاؤها في انطلق يعني أن أي جهاز مخزَّن فيه countryCode='Syria' يخاطب إنتاج سيرو مباشرة. انطلق نشرٌ واحد على مضيف واحد (docs/34: سيرفر لكل مستأجر)، والدولة تُحل على السيرفر من GLOBAL_COUNTRY. طُويت 35 كتلة switch إلى قيمة واحدة (11 rider · 11 driver · 6 admin · 7 service)، والخريطة مأخوذة من تعليق docker/nginx/default.conf نفسه («نقطة واحدة لكل الخدمات — التطبيق يغيّر الدومين فقط»): server / rideServer → https://api.intaleqapp.com/backend paymentServer → https://api.intaleqapp.com/v2/main location → …/backend/ride/location locationServerSide(د) → …/loction_server/siro/ride/location سوكيت الركاب → https://api.intaleqapp.com:3030 سوكيت السائقين → https://api.intaleqapp.com:2020 وأيضاً: - appDomain و invite: siromove.com → intaleqapp.com، والمجلد siromove.com/ → intaleqapp.com/ (فيه invite.php الذي يقصده التطبيق). - روابط التنزيل siro.app → intaleqapp.com · بريد السائق المولَّد @siromove.com → @intaleqapp.com · صفحة التتبع · محاكاة تسجيل سوريا. - حُذف getter `syria` الميت من links.dart الثلاثة (لا مستدعي له، وكان يشير إلى إنتاج سيرو). لم يُمسّ عمداً: - `ssl_pinning.dart`: `badCertificateCallback` لا يُستدعى إلا عند فشل التحقق العادي، فشهادة api.intaleqapp.com الصالحة تمرّ بلا مساس. ولا أختلق بصمة شهادة: تُضاف بصمة انطلق بعد إصدار الشهادة (docs/30 G7). - `routesjo.intaleq.xyz` و `map-saas.intaleqapp.com`: خدمات خارجية قائمة بذاتها للمالك (قرار الخرائط المباشرة) لا تُنقل إلى api. - `com.siromove.admin` في userAgentPackageName (5 مواضع): من عائلة هويات المتاجر — كوميت الهويات، وهو يحتاج قرار المالك. ⚠️ يحتاج نشراً على الطرف الآخر: invite.php و track/index.php و /driver على intaleqapp.com. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5
parent
0aab85c732
commit
53322d87a6
@@ -3,7 +3,7 @@ import '../main.dart';
|
|||||||
|
|
||||||
class AppLink {
|
class AppLink {
|
||||||
static String seferPaymentServer =
|
static String seferPaymentServer =
|
||||||
'https://walletintaleq.intaleq.xyz/v1/main';
|
'https://api.intaleqapp.com/v1/main';
|
||||||
static final String tripzPaymentServer0 = seferPaymentServer;
|
static final String tripzPaymentServer0 = seferPaymentServer;
|
||||||
static final String tripzPaymentServer = '$seferPaymentServer/ride';
|
static final String tripzPaymentServer = '$seferPaymentServer/ride';
|
||||||
static final String tripzAlexandriaServer = Env.seferAlexandriaServer;
|
static final String tripzAlexandriaServer = Env.seferAlexandriaServer;
|
||||||
@@ -15,90 +15,31 @@ class AppLink {
|
|||||||
static String get currentCountry => box.read('countryCode') ?? 'Jordan';
|
static String get currentCountry => box.read('countryCode') ?? 'Jordan';
|
||||||
|
|
||||||
static String get server {
|
static String get server {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/backend';
|
||||||
case 'Syria':
|
|
||||||
return 'https://api-syria.siromove.com/siro_v3';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://api-egypt.siromove.com/siro_v3';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
|
||||||
default:
|
|
||||||
return 'https://api.siromove.com/siro_v3';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get endPoint => server;
|
static String get endPoint => server;
|
||||||
static String get syria => 'https://api-syria.siromove.com/siro';
|
|
||||||
|
|
||||||
static String get paymentServer {
|
static String get paymentServer {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/v2/main';
|
||||||
case 'Syria':
|
|
||||||
return 'https://wallet-syria.siromove.com/v1/main';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://wallet-egypt.siromove.com/v1/main';
|
|
||||||
case 'Jordan':
|
|
||||||
// TODO: Change to new subdomain when fully migrated
|
|
||||||
return 'https://walletintaleq.intaleq.xyz/v2/main';
|
|
||||||
default:
|
|
||||||
return 'https://wallet.siromove.com/v1/main';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get locationServer {
|
static String get locationServer {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/loction_server/siro/ride/location';
|
||||||
case 'Syria':
|
|
||||||
return 'https://location-syria.siromove.com/siro/ride/location';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://location-egypt.siromove.com/siro/ride/location';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://jordan-siro.intaleqapp.com/loction_server/siro/ride/location';
|
|
||||||
default:
|
|
||||||
return 'https://location.siromove.com/siro/ride/location';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get locationServerSide => locationServer;
|
static String get locationServerSide => locationServer;
|
||||||
|
|
||||||
static String get mapSaasRoute {
|
static String get mapSaasRoute {
|
||||||
switch (currentCountry) {
|
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
||||||
case 'Syria':
|
|
||||||
return 'https://map-syria.siromove.com/api/maps/route';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://map-egypt.siromove.com/api/maps/route';
|
|
||||||
case 'Jordan':
|
|
||||||
// TODO: Change to new subdomain when fully migrated
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
|
||||||
default:
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get mapSaasPlaces {
|
static String get mapSaasPlaces {
|
||||||
switch (currentCountry) {
|
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
||||||
case 'Syria':
|
|
||||||
return 'https://map-syria.siromove.com/api/geocoding/places';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://map-egypt.siromove.com/api/geocoding/places';
|
|
||||||
case 'Jordan':
|
|
||||||
// TODO: Change to new subdomain when fully migrated
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
|
||||||
default:
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get routeApiBaseUrl {
|
static String get routeApiBaseUrl {
|
||||||
switch (currentCountry) {
|
return 'https://routesjo.intaleq.xyz';
|
||||||
case 'Syria':
|
|
||||||
return 'https://routes-syria.siromove.com/route/v1/driving';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://routes-egypt.siromove.com/route/v1/driving';
|
|
||||||
case 'Jordan':
|
|
||||||
// TODO: Change to new subdomain when fully migrated
|
|
||||||
return 'https://routesjo.intaleq.xyz';
|
|
||||||
default:
|
|
||||||
return 'https://routes.siromove.com/route/v1/driving';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String loginJwtDriver = "$server/loginAdmin.php";
|
static String loginJwtDriver = "$server/loginAdmin.php";
|
||||||
@@ -392,7 +333,7 @@ class AppLink {
|
|||||||
"$server/Admin/marketing/ai_price_prediction.php";
|
"$server/Admin/marketing/ai_price_prediction.php";
|
||||||
static String saveDriverDestination =
|
static String saveDriverDestination =
|
||||||
"$server/ride/location/save_driver_destination.php";
|
"$server/ride/location/save_driver_destination.php";
|
||||||
static String paymentServerV2 = 'https://walletintaleq.intaleq.xyz/v2/main';
|
static String paymentServerV2 = 'https://api.intaleqapp.com/v2/main';
|
||||||
static String realtimeDashboardV2 = "$server/Admin/v2/realtime_dashboard.php";
|
static String realtimeDashboardV2 = "$server/Admin/v2/realtime_dashboard.php";
|
||||||
static String smartAlertsV2 = "$server/Admin/v2/smart_alerts.php";
|
static String smartAlertsV2 = "$server/Admin/v2/smart_alerts.php";
|
||||||
static String growthV2 = "$server/Admin/v2/analytics/growth.php";
|
static String growthV2 = "$server/Admin/v2/analytics/growth.php";
|
||||||
|
|||||||
@@ -7,142 +7,60 @@ class AppLink {
|
|||||||
static String get serverPHP => box.read('serverPHP');
|
static String get serverPHP => box.read('serverPHP');
|
||||||
|
|
||||||
static String get paymentServer {
|
static String get paymentServer {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/v2/main';
|
||||||
case 'Syria':
|
|
||||||
return 'https://wallet-syria.siromove.com/v1/main';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://wallet-egypt.siromove.com/v1/main';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://walletintaleq.intaleq.xyz/v2/main';
|
|
||||||
default:
|
|
||||||
return 'https://wallet.siromove.com/v1/main';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static const String appDomain = 'siromove.com';
|
static const String appDomain = 'intaleqapp.com';
|
||||||
|
|
||||||
static String get inviteRedirectUrl {
|
static String get inviteRedirectUrl {
|
||||||
if (currentCountry == 'Syria') {
|
if (currentCountry == 'Syria') {
|
||||||
return "https://siromove.com/inviteSyria.php";
|
return "https://intaleqapp.com/invite.php";
|
||||||
}
|
}
|
||||||
return "https://siromove.com/invite.php";
|
return "https://intaleqapp.com/invite.php";
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get location {
|
static String get location {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/backend/ride/location';
|
||||||
case 'Syria':
|
|
||||||
return 'https://api-syria.siromove.com/siro_v3/ride/location';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://api-egypt.siromove.com/siro_v3/ride/location';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://jordan-siro.intaleqapp.com/backend/ride/location';
|
|
||||||
default:
|
|
||||||
return 'https://api.siromove.com/siro_v3/ride/location';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get locationServer => locationServerSide;
|
static String get locationServer => locationServerSide;
|
||||||
|
|
||||||
static String get locationServerSide {
|
static String get locationServerSide {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/loction_server/siro/ride/location';
|
||||||
case 'Syria':
|
|
||||||
return 'https://location-syria.siromove.com/siro/ride/location';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://location-egypt.siromove.com/siro/ride/location';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://jordan-siro.intaleqapp.com/loction_server/siro/ride/location';
|
|
||||||
default:
|
|
||||||
return 'https://location-jordan.siromove.com/siro/ride/location';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get locationSocketUrl {
|
static String get locationSocketUrl {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com:2020';
|
||||||
case 'Syria':
|
|
||||||
return 'https://location-syria.siromove.com';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://location-egypt.siromove.com';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://jordan-siro.intaleqapp.com:2020';
|
|
||||||
default:
|
|
||||||
return 'https://jordan-siro.intaleqapp.com:2020';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get mapSaasRoute {
|
static String get mapSaasRoute {
|
||||||
switch (currentCountry) {
|
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
||||||
case 'Syria':
|
|
||||||
return 'https://map-syria.siromove.com/api/maps/route';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://map-egypt.siromove.com/api/maps/route';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
|
||||||
default:
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get mapSaasPlaces {
|
static String get mapSaasPlaces {
|
||||||
switch (currentCountry) {
|
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
||||||
case 'Syria':
|
|
||||||
return 'https://map-syria.siromove.com/api/geocoding/places';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://map-egypt.siromove.com/api/geocoding/places';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
|
||||||
default:
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get routeApiBaseUrl {
|
static String get routeApiBaseUrl {
|
||||||
switch (currentCountry) {
|
return "https://routesjo.intaleq.xyz/route/v1/driving";
|
||||||
case 'Syria':
|
|
||||||
return "https://routes-syria.siromove.com/route/v1/driving";
|
|
||||||
case 'Egypt':
|
|
||||||
return "https://routes-egypt.siromove.com/route/v1/driving";
|
|
||||||
case 'Jordan':
|
|
||||||
return "https://routesjo.intaleq.xyz/route/v1/driving";
|
|
||||||
default:
|
|
||||||
return "https://routes.siromove.com/route/v1/driving";
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get currentCountry => box.read(BoxName.countryCode) ?? 'Jordan';
|
static String get currentCountry => box.read(BoxName.countryCode) ?? 'Jordan';
|
||||||
|
|
||||||
static String get endPoint {
|
static String get endPoint {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/backend';
|
||||||
case 'Syria':
|
|
||||||
return 'https://api-syria.siromove.com/siro';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://api-egypt.siromove.com/siro';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
|
||||||
default:
|
|
||||||
return 'https://api.siromove.com/siro';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get syria => 'https://api-syria.siromove.com/siro';
|
|
||||||
static String get server => endPoint;
|
static String get server => endPoint;
|
||||||
|
|
||||||
///=================ride==========================///
|
///=================ride==========================///
|
||||||
///https://jordan-siro.intaleqapp.com/backend
|
///https://api.intaleqapp.com/backend
|
||||||
static String get ride => '$server/ride';
|
static String get ride => '$server/ride';
|
||||||
|
|
||||||
/// this ride server is for socket communication not for rest api calls
|
/// this ride server is for socket communication not for rest api calls
|
||||||
/// https://rides.intaleq.xyz/intaleq
|
/// https://rides.intaleq.xyz/intaleq
|
||||||
static String get rideServer {
|
static String get rideServer {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/backend';
|
||||||
case 'Syria':
|
|
||||||
return 'https://ride-syria.siromove.com/siro/ride';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://ride-egypt.siromove.com/siro/ride';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
|
||||||
default:
|
|
||||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get getSurgeHeatmap =>
|
static String get getSurgeHeatmap =>
|
||||||
@@ -153,16 +71,7 @@ class AppLink {
|
|||||||
|
|
||||||
///mapOSM = 'https://routesy.intaleq.xyz'
|
///mapOSM = 'https://routesy.intaleq.xyz'
|
||||||
static String get mapOSM {
|
static String get mapOSM {
|
||||||
switch (currentCountry) {
|
return 'https://routesjo.intaleq.xyz';
|
||||||
case 'Syria':
|
|
||||||
return 'https://routes-syria.siromove.com';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://routes-egypt.siromove.com';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://routesjo.intaleq.xyz';
|
|
||||||
default:
|
|
||||||
return 'https://routes.siromove.com';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get seferCairoServer => endPoint;
|
static String get seferCairoServer => endPoint;
|
||||||
@@ -394,16 +303,7 @@ class AppLink {
|
|||||||
"$ride/location/save_driver_destination.php";
|
"$ride/location/save_driver_destination.php";
|
||||||
|
|
||||||
static String get reverseGeocoding {
|
static String get reverseGeocoding {
|
||||||
switch (currentCountry) {
|
return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
|
||||||
case 'Syria':
|
|
||||||
return 'https://map-syria.siromove.com/api/geocoding/reverse';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://map-egypt.siromove.com/api/geocoding/reverse';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
|
|
||||||
default:
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get updateApiKey => "$ride/apiKey/update.php";
|
static String get updateApiKey => "$ride/apiKey/update.php";
|
||||||
|
|||||||
@@ -46,7 +46,7 @@ class InviteController extends GetxController {
|
|||||||
'''Join Siro as a driver using my referral code!
|
'''Join Siro as a driver using my referral code!
|
||||||
Use code: $driverCouponCode
|
Use code: $driverCouponCode
|
||||||
Download the Siro Driver app now and earn rewards:
|
Download the Siro Driver app now and earn rewards:
|
||||||
https://siromove.com/invite.php?code=$driverCouponCode&app=driver
|
https://intaleqapp.com/invite.php?code=$driverCouponCode&app=driver
|
||||||
''';
|
''';
|
||||||
await Share.share(shareText);
|
await Share.share(shareText);
|
||||||
}
|
}
|
||||||
@@ -57,7 +57,7 @@ https://siromove.com/invite.php?code=$driverCouponCode&app=driver
|
|||||||
final String shareText = '''Get a discount on your first Siro ride!
|
final String shareText = '''Get a discount on your first Siro ride!
|
||||||
Use my referral code: $couponCode
|
Use my referral code: $couponCode
|
||||||
Download the Siro app now and enjoy your ride:
|
Download the Siro app now and enjoy your ride:
|
||||||
https://siromove.com/invite.php?code=$couponCode&app=rider
|
https://intaleqapp.com/invite.php?code=$couponCode&app=rider
|
||||||
''';
|
''';
|
||||||
await Share.share(shareText);
|
await Share.share(shareText);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -612,7 +612,7 @@ class RegistrationController extends GetxController {
|
|||||||
_addField(fields, 'password', 'generated_password_or_token');
|
_addField(fields, 'password', 'generated_password_or_token');
|
||||||
_addField(fields, 'status', 'yet');
|
_addField(fields, 'status', 'yet');
|
||||||
|
|
||||||
String generatedEmail = 'driver_${box.read(BoxName.driverID) ?? DateTime.now().millisecondsSinceEpoch}@siromove.com';
|
String generatedEmail = 'driver_${box.read(BoxName.driverID) ?? DateTime.now().millisecondsSinceEpoch}@intaleqapp.com';
|
||||||
_addField(fields, 'email', generatedEmail);
|
_addField(fields, 'email', generatedEmail);
|
||||||
_addField(fields, 'gender', 'Male'); // يفضل ربطها بـ Dropdown أيضاً
|
_addField(fields, 'gender', 'Male'); // يفضل ربطها بـ Dropdown أيضاً
|
||||||
_addField(fields, 'country', box.read(BoxName.countryCode)?.toString() ?? 'Jordan');
|
_addField(fields, 'country', box.read(BoxName.countryCode)?.toString() ?? 'Jordan');
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ void main() async {
|
|||||||
print(' SYRIA DRIVER REGISTRATION SIMULATION');
|
print(' SYRIA DRIVER REGISTRATION SIMULATION');
|
||||||
print('═══════════════════════════════════════════════════════');
|
print('═══════════════════════════════════════════════════════');
|
||||||
|
|
||||||
const host = 'api-syria.siromove.com';
|
const host = 'api.intaleqapp.com';
|
||||||
const protocol = 'https';
|
const protocol = 'https';
|
||||||
const driverId = 'DRV2026061912345678';
|
const driverId = 'DRV2026061912345678';
|
||||||
|
|
||||||
|
|||||||
@@ -137,12 +137,12 @@ class ReferralController extends GetxController {
|
|||||||
|
|
||||||
String get shareMessage {
|
String get shareMessage {
|
||||||
final appName = 'Siro';
|
final appName = 'Siro';
|
||||||
return 'Join $appName as a driver! Use my code: $referralCode\nDownload: https://siro.app/driver?ref=$referralCode';
|
return 'Join $appName as a driver! Use my code: $referralCode\nDownload: https://intaleqapp.com/driver?ref=$referralCode';
|
||||||
}
|
}
|
||||||
|
|
||||||
String get shareMessagePassenger {
|
String get shareMessagePassenger {
|
||||||
final appName = 'Siro';
|
final appName = 'Siro';
|
||||||
return 'Get a ride with $appName! Use my code: $referralCode for a discount.\nDownload: https://siro.app?ref=$referralCode';
|
return 'Get a ride with $appName! Use my code: $referralCode for a discount.\nDownload: https://intaleqapp.com?ref=$referralCode';
|
||||||
}
|
}
|
||||||
|
|
||||||
int get totalReferrals => totalDriverReferrals + totalPassengerReferrals;
|
int get totalReferrals => totalDriverReferrals + totalPassengerReferrals;
|
||||||
|
|||||||
@@ -2,160 +2,59 @@ import 'package:intaleq_rider/constant/box_name.dart';
|
|||||||
import 'package:intaleq_rider/main.dart';
|
import 'package:intaleq_rider/main.dart';
|
||||||
|
|
||||||
class AppLink {
|
class AppLink {
|
||||||
static const String appDomain = 'siromove.com';
|
static const String appDomain = 'intaleqapp.com';
|
||||||
|
|
||||||
static String get inviteRedirectUrl {
|
/// ⚠️ تحتاج صفحة invite.php منشورة على intaleqapp.com. كان لسيرو صيغتان
|
||||||
if (currentCountry == 'Syria') {
|
/// (invite.php و inviteSyria.php حسب الدولة) — طُويت إلى واحدة: انطلق نشرٌ
|
||||||
return "https://siromove.com/inviteSyria.php";
|
/// واحد لدولة واحدة (docs/34).
|
||||||
}
|
static String get inviteRedirectUrl => "https://$appDomain/invite.php";
|
||||||
return "https://siromove.com/invite.php";
|
|
||||||
}
|
|
||||||
|
|
||||||
static String get currentCountry => box.read(BoxName.countryCode) ?? 'Jordan';
|
static String get currentCountry => box.read(BoxName.countryCode) ?? 'Jordan';
|
||||||
|
|
||||||
static String get paymentServer {
|
static String get paymentServer {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/v2/main';
|
||||||
case 'Syria':
|
|
||||||
return 'https://wallet-syria.siromove.com/v1/main';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://wallet-egypt.siromove.com/v1/main';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://walletintaleq.intaleq.xyz/v2/main';
|
|
||||||
default:
|
|
||||||
return 'https://wallet.siromove.com/v1/main';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get location {
|
static String get location {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/backend/ride/location';
|
||||||
case 'Syria':
|
|
||||||
return 'https://api-syria.siromove.com/siro_v3/ride/location';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://api-egypt.siromove.com/siro_v3/ride/location';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://jordan-siro.intaleqapp.com/backend/ride/location';
|
|
||||||
default:
|
|
||||||
return 'https://api.siromove.com/siro_v3/ride/location';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get locationServerSide {
|
static String get locationServerSide {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/backend/ride/location';
|
||||||
case 'Syria':
|
|
||||||
return 'https://location-syria.siromove.com/siro/ride/location';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://location-egypt.siromove.com/siro/ride/location';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://jordan-siro.intaleqapp.com/backend/ride/location';
|
|
||||||
default:
|
|
||||||
return 'https://location.siromove.com/siro/ride/location';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get routesOsm {
|
static String get routesOsm {
|
||||||
switch (currentCountry) {
|
return 'https://routesjo.intaleq.xyz';
|
||||||
case 'Syria':
|
|
||||||
return 'https://routes-syria.siromove.com';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://routes-egypt.siromove.com';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://routesjo.intaleq.xyz';
|
|
||||||
default:
|
|
||||||
return 'https://routes.siromove.com';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get mapSaasRoute {
|
static String get mapSaasRoute {
|
||||||
switch (currentCountry) {
|
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
||||||
case 'Syria':
|
|
||||||
return 'https://map-syria.siromove.com/api/maps/route';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://map-egypt.siromove.com/api/maps/route';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
|
||||||
default:
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get reverseGeocoding {
|
static String get reverseGeocoding {
|
||||||
switch (currentCountry) {
|
return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
|
||||||
case 'Syria':
|
|
||||||
return 'https://map-syria.siromove.com/api/geocoding/reverse';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://map-egypt.siromove.com/api/geocoding/reverse';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
|
|
||||||
default:
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/geocoding/reverse';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get searchGeocoding {
|
static String get searchGeocoding {
|
||||||
switch (currentCountry) {
|
return 'https://map-saas.intaleqapp.com/api/geocoding/search';
|
||||||
case 'Syria':
|
|
||||||
return 'https://map-syria.siromove.com/api/geocoding/search';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://map-egypt.siromove.com/api/geocoding/search';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/geocoding/search';
|
|
||||||
default:
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/geocoding/search';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get mapSaasPlaces {
|
static String get mapSaasPlaces {
|
||||||
switch (currentCountry) {
|
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
||||||
case 'Syria':
|
|
||||||
return 'https://map-syria.siromove.com/api/geocoding/places';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://map-egypt.siromove.com/api/geocoding/places';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
|
||||||
default:
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get endPoint => server;
|
static String get endPoint => server;
|
||||||
|
|
||||||
static String get rideServerSide {
|
static String get rideServerSide {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/backend';
|
||||||
case 'Syria':
|
|
||||||
return 'https://ride-syria.siromove.com/siro';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://ride-egypt.siromove.com/siro';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
|
||||||
default:
|
|
||||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get server {
|
static String get server {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/backend';
|
||||||
case 'Syria':
|
|
||||||
return 'https://api-syria.siromove.com/siro_v3';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://api-egypt.siromove.com/siro_v3';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
|
||||||
default:
|
|
||||||
return 'https://api.siromove.com/siro_v3';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get serverSocket {
|
static String get serverSocket {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com:3030';
|
||||||
case 'Syria':
|
|
||||||
return 'https://api-syria.siromove.com';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://api-egypt.siromove.com';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://jordan-siro.intaleqapp.com:3030';
|
|
||||||
default:
|
|
||||||
return 'https://jordan-siro.intaleqapp.com:3030';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
///
|
///
|
||||||
|
|||||||
@@ -1895,7 +1895,7 @@ class RideLifecycleController extends GetxController {
|
|||||||
var digest = md5.convert(bytes);
|
var digest = md5.convert(bytes);
|
||||||
String token = digest.toString();
|
String token = digest.toString();
|
||||||
|
|
||||||
return "https://siromove.com/track/index.php?id=$cleanRideId&token=$token";
|
return "https://intaleqapp.com/track/index.php?id=$cleanRideId&token=$token";
|
||||||
}
|
}
|
||||||
|
|
||||||
calcualateDistsanceInMetet(LatLng prev, current) async {
|
calcualateDistsanceInMetet(LatLng prev, current) async {
|
||||||
|
|||||||
@@ -12,101 +12,37 @@ class AppLink {
|
|||||||
static String get currentCountry => box.read('countryCode') ?? 'Jordan';
|
static String get currentCountry => box.read('countryCode') ?? 'Jordan';
|
||||||
|
|
||||||
static String get paymentServer {
|
static String get paymentServer {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/v2/main';
|
||||||
case 'Syria':
|
|
||||||
return 'https://wallet-syria.siromove.com/v1/main';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://wallet-egypt.siromove.com/v1/main';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://walletintaleq.intaleq.xyz/v2/main';
|
|
||||||
default:
|
|
||||||
return 'https://wallet.siromove.com/v1/main';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get locationServer {
|
static String get locationServer {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/loction_server/siro/ride/location';
|
||||||
case 'Syria':
|
|
||||||
return 'https://location-syria.siromove.com/siro/ride/location';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://location-egypt.siromove.com/siro/ride/location';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://jordan-siro.intaleqapp.com/loction_server/siro/ride/location';
|
|
||||||
default:
|
|
||||||
return 'https://location.siromove.com/siro/ride/location';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get location => locationServer;
|
static String get location => locationServer;
|
||||||
static String get locationServerSide => locationServer;
|
static String get locationServerSide => locationServer;
|
||||||
|
|
||||||
static String get mapSaasRoute {
|
static String get mapSaasRoute {
|
||||||
switch (currentCountry) {
|
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
||||||
case 'Syria':
|
|
||||||
return 'https://map-syria.siromove.com/api/maps/route';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://map-egypt.siromove.com/api/maps/route';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
|
||||||
default:
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/maps/route';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get mapSaasPlaces {
|
static String get mapSaasPlaces {
|
||||||
switch (currentCountry) {
|
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
||||||
case 'Syria':
|
|
||||||
return 'https://map-syria.siromove.com/api/geocoding/places';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://map-egypt.siromove.com/api/geocoding/places';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
|
||||||
default:
|
|
||||||
return 'https://map-saas.intaleqapp.com/api/geocoding/places';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get routeApiBaseUrl {
|
static String get routeApiBaseUrl {
|
||||||
switch (currentCountry) {
|
return 'https://routesjo.intaleq.xyz/route/v1/driving';
|
||||||
case 'Syria':
|
|
||||||
return 'https://routes-syria.siromove.com/route/v1/driving';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://routes-egypt.siromove.com/route/v1/driving';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://routesjo.intaleq.xyz/route/v1/driving';
|
|
||||||
default:
|
|
||||||
return 'https://routes.siromove.com/route/v1/driving';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get syria => 'https://api-syria.siromove.com/siro';
|
|
||||||
|
|
||||||
static String seferPaymentServer0 = box.read('seferPaymentServer');
|
static String seferPaymentServer0 = box.read('seferPaymentServer');
|
||||||
|
|
||||||
static String get endPoint {
|
static String get endPoint {
|
||||||
switch (currentCountry) {
|
return 'https://api.intaleqapp.com/backend';
|
||||||
case 'Syria':
|
|
||||||
return 'https://api-syria.siromove.com/siro_v3';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://api-egypt.siromove.com/siro_v3';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://jordan-siro.intaleqapp.com/backend';
|
|
||||||
default:
|
|
||||||
return 'https://api.siromove.com/siro_v3';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get rideServer {
|
static String get rideServer {
|
||||||
switch (currentCountry) {
|
return 'https://rides.intaleq.xyz/intaleq';
|
||||||
case 'Syria':
|
|
||||||
return 'https://api-syria.siromove.com/siro';
|
|
||||||
case 'Egypt':
|
|
||||||
return 'https://api-egypt.siromove.com/siro';
|
|
||||||
case 'Jordan':
|
|
||||||
return 'https://rides.intaleq.xyz/intaleq';
|
|
||||||
default:
|
|
||||||
return 'https://api.siromove.com/siro';
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static String get getBestDriver => "$server/Admin/driver/getBestDriver.php";
|
static String get getBestDriver => "$server/Admin/driver/getBestDriver.php";
|
||||||
|
|||||||
Reference in New Issue
Block a user