mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
Dont consume gems for now
This commit is contained in:
parent
81a5a4052d
commit
22ebd8056f
1 changed files with 5 additions and 5 deletions
|
@ -172,11 +172,11 @@ pub fn lottery_post(req: HttpRequest, body: String) -> HttpResponse {
|
|||
lottery_id = 1110024;
|
||||
let price = PRICE[lottery_id.to_string()][body["master_lottery_price_number"].to_string()].clone();
|
||||
|
||||
if price["consumeType"].as_i32().unwrap() == 1 {
|
||||
global::remove_gems(&mut user, price["price"].as_i64().unwrap());
|
||||
} else if price["consumeType"].as_i32().unwrap() == 4 {
|
||||
global::use_item(price["masterItemId"].as_i64().unwrap(), price["price"].as_i64().unwrap(), &mut user);
|
||||
}
|
||||
//if price["consumeType"].as_i32().unwrap() == 1 {
|
||||
// global::remove_gems(&mut user, price["price"].as_i64().unwrap());
|
||||
//} else if price["consumeType"].as_i32().unwrap() == 4 {
|
||||
// global::use_item(price["masterItemId"].as_i64().unwrap(), price["price"].as_i64().unwrap(), &mut user);
|
||||
//}
|
||||
|
||||
cardstogive = get_random_cards(lottery_id, price["count"].as_usize().unwrap());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue