Update: 2026-07-12 18:53:59

This commit is contained in:
Hamza-Ayed
2026-07-12 18:53:59 +03:00
parent 8cd4a4b57e
commit 653d73422f
54 changed files with 2078 additions and 436 deletions
+12 -7
View File
@@ -27,13 +27,18 @@ $transit_con->prepare(
WHERE id=?"
)->execute([$newStatus, $expiresAt, $enrollId]);
if ($action === 'approve' && $enroll['passenger_id']) {
transitSendTopicNotification(
'passenger_' . $enroll['passenger_id'],
'تم تفعيل عضويتك',
'يمكنك الآن متابعة باصات جامعتك عبر مواصلاتي',
['type' => 'transit_enrollment_approved']
);
if ($enroll['passenger_id']) {
if ($action === 'approve') {
transitCacheEnrollment($transit_org_id, (string)$enroll['passenger_id']);
transitSendTopicNotification(
'passenger_' . $enroll['passenger_id'],
'تم تفعيل عضويتك',
'يمكنك الآن متابعة باصات جامعتك عبر مواصلاتي',
['type' => 'transit_enrollment_approved']
);
} else {
transitDropEnrollment($transit_org_id, (string)$enroll['passenger_id']);
}
}
jsonSuccess(['enrollment_id' => $enrollId, 'status' => $newStatus]);