Fix claiming points from box

This commit is contained in:
Ethan O'Brien
2024-04-29 10:40:03 -05:00
parent dbcec25ffd
commit 63419afacc
3 changed files with 12 additions and 8 deletions

View File

@ -22,13 +22,7 @@ pub fn serial_code(req: HttpRequest, body: String) -> HttpResponse {
let item;
if body["input_code"].to_string() == "SIF2REVIVALREAL!" {
item = global::gift_item(&object!{
id: global::timestamp(),
type: 4,
level: 0,
amount: 100000,
value: 1
}, "You typed in code", &mut user);
item = global::gift_item_basic(1, 10000, 4, "You typed in code!!!!!!!!!", &mut user);
} else {
let resp = object!{
"code": 0,