Implement exchange shop

This commit is contained in:
Ethan O'Brien
2024-05-04 11:49:03 -05:00
parent 7fcae95ded
commit b7d4f21e25
4 changed files with 80 additions and 0 deletions

View File

@ -213,6 +213,7 @@ pub fn lottery_post(req: HttpRequest, body: String) -> HttpResponse {
}
lottery_list.push(to_push).unwrap();
}
global::give_gift_basic(3, 15540034, 10, &mut user);
} else if lottery_type == 2 {
for (_i, data) in cardstogive.members().enumerate() {
let info = get_card(data["master_lottery_item_id"].to_string(), data["master_lottery_item_number"].to_string());