feat: unify referral promotion tabs and compact earnings UI
This commit is contained in:
@@ -376,10 +376,9 @@ trait PayHelpers {
|
||||
if (empty($aff['enabled'])) {
|
||||
return $empty;
|
||||
}
|
||||
$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($user_id);
|
||||
}
|
||||
$referrer_id = class_exists('\AKSRT\Payment\ReferralAttribution')
|
||||
? \AKSRT\Payment\ReferralAttribution::get_instance()->resolve($user_id)
|
||||
: 0;
|
||||
if ($referrer_id <= 0) {
|
||||
return $empty;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user