feat: unify referral promotion tabs and compact earnings UI
This commit is contained in:
@@ -599,10 +599,9 @@ if (!function_exists('aksrt_get_post_rebate_discount')) {
|
||||
return 0.0;
|
||||
}
|
||||
$uid = $user_id > 0 ? $user_id : (function_exists('get_current_user_id') ? (int) get_current_user_id() : 0);
|
||||
$referrer_id = 0;
|
||||
if (class_exists('\AKSRT\Credits\Invite') && method_exists(\AKSRT\Credits\Invite::get_instance(), 'get_referrer')) {
|
||||
$referrer_id = (int) \AKSRT\Credits\Invite::get_instance()->get_referrer($uid);
|
||||
}
|
||||
$referrer_id = class_exists('\AKSRT\Payment\ReferralAttribution')
|
||||
? \AKSRT\Payment\ReferralAttribution::get_instance()->resolve($uid)
|
||||
: 0;
|
||||
if ($referrer_id <= 0) {
|
||||
return 0.0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user