fix(user-center): complete certification and order flows
Fix modal scroll ownership and certification modal styling, store evidence as Media Library attachments, reconcile missed provider callbacks, validate currencies, and complete digital fulfillment only after durable entitlement delivery.
This commit is contained in:
1 parent
b945c6e835
commit
815e83bac0
26 files changed
+613
-148
No files matched your search
@@ -510,8 +510,12 @@ class PlateFollowPay {
|
||||
}
|
||||
}
|
||||
|
||||
$fulfilled = $user_id <= 0;
|
||||
if ($user_id > 0) {
|
||||
$this->mark_followed($user_id, $plate_id);
|
||||
$fulfilled = class_exists('AKSRT\\Forum\\Forum')
|
||||
? Forum::get_instance()->is_user_following_plate($user_id, $plate_id)
|
||||
: in_array($plate_id, array_map('intval', (array) get_user_meta($user_id, 'aksrt_follow_plate', true)), true);
|
||||
} elseif (function_exists('aksrt_set_guest_pay_cookies')) {
|
||||
if (class_exists('\AKSRT\Payment\OrderRepository')) {
|
||||
$full = \AKSRT\Payment\OrderRepository::get_instance()->get($order_number);
|
||||
@@ -522,6 +526,13 @@ class PlateFollowPay {
|
||||
aksrt_set_guest_pay_cookies($paid_order);
|
||||
}
|
||||
$this->finalize_plate_order_side_effects($order_number, $paid_order);
|
||||
if ($fulfilled && class_exists('\AKSRT\Payment\OrderRepository')) {
|
||||
\AKSRT\Payment\OrderRepository::get_instance()->update_status(
|
||||
$order_number,
|
||||
\AKSRT\Payment\Order::STATUS_COMPLETED,
|
||||
['note' => __('付费关注权益已发放。', 'aksrt')]
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in new issue
Block a user