swip bonus consume

This commit is contained in:
xiaomlove
2022-07-25 03:37:51 +08:00
parent cc63bb53e6
commit c43ded9369
2 changed files with 0 additions and 5 deletions
-2
View File
@@ -658,7 +658,6 @@ if ($action == "exchange") {
stderr("Error","Invalid Medal ID: " . ($_POST['medal_id'] ?? ''), false, false);
}
try {
$bonusRep = new \App\Repositories\BonusRepository();
$bonusRep->consumeToBuyMedal($userid, $_POST['medal_id']);
nexus_redirect("" . get_protocol_prefix() . "$BASEURL/mybonus.php?do=buy_medal");
} catch (\Exception $exception) {
@@ -667,7 +666,6 @@ if ($action == "exchange") {
}
} elseif ($art == 'attendance_card') {
try {
$bonusRep = new \App\Repositories\BonusRepository();
$bonusRep->consumeToBuyAttendanceCard($userid);
nexus_redirect("" . get_protocol_prefix() . "$BASEURL/mybonus.php?do=attendance_card");
} catch (\Exception $exception) {