feat(user-center): merge promotion rewards into revenue

This commit is contained in:
2026-08-05 23:43:16 +08:00
parent a87fd32fa3
commit 39c92017d9
14 changed files with 1048 additions and 159 deletions
+3 -1
View File
@@ -122,7 +122,9 @@ if ($_SERVER['REQUEST_METHOD'] === 'POST' && isset($_POST['user_login'], $_POST[
}
$invite_prefill = '';
if (!empty($_GET['invite'])) {
if (!empty($_GET['ref'])) {
$invite_prefill = sanitize_key(wp_unslash($_GET['ref']));
} elseif (!empty($_GET['invite'])) {
$invite_prefill = sanitize_key(wp_unslash($_GET['invite']));
} elseif (!empty($_COOKIE['aksrt_invite'])) {
$invite_prefill = sanitize_key(wp_unslash($_COOKIE['aksrt_invite']));
+3 -1
View File
@@ -39,7 +39,9 @@ if (class_exists('\AKSRT\Settings\Settings')) {
: (string) ($invite_cfg['open_desc'] ?? '');
}
if (!empty($_GET['invite'])) {
if (!empty($_GET['ref'])) {
$invite_prefill = sanitize_key(wp_unslash($_GET['ref']));
} elseif (!empty($_GET['invite'])) {
$invite_prefill = sanitize_key(wp_unslash($_GET['invite']));
} elseif (!empty($_COOKIE['aksrt_invite'])) {
$invite_prefill = sanitize_key(wp_unslash($_COOKIE['aksrt_invite']));