mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
Summary (optional)
This commit is contained in:
parent
24881d2987
commit
c0cd73940e
1 changed files with 10 additions and 2 deletions
|
@ -40,6 +40,14 @@ pub fn serial_code(req: HttpRequest, body: String) -> HttpResponse {
|
||||||
items::gift_item_basic(40030013, 1, 2, "I need more primogem!!!!!!", &mut user),
|
items::gift_item_basic(40030013, 1, 2, "I need more primogem!!!!!!", &mut user),
|
||||||
items::gift_item_basic(10070016, 1, 2, "I need more primogem!!!!!!", &mut user)
|
items::gift_item_basic(10070016, 1, 2, "I need more primogem!!!!!!", &mut user)
|
||||||
];
|
];
|
||||||
|
} else if body["input_code"].to_string() == "kode" {
|
||||||
|
itemz = array![
|
||||||
|
items::gift_item_basic(10060018, 1, 2, "meow", &mut user),
|
||||||
|
items::gift_item_basic(20050019, 1, 2, "meow", &mut user),
|
||||||
|
items::gift_item_basic(10020018, 1, 2, "meow", &mut user),
|
||||||
|
items::gift_item_basic(10010014, 1, 2, "meow", &mut user),
|
||||||
|
items::gift_item_basic(10010015, 1, 2, "meow", &mut user)
|
||||||
|
];
|
||||||
} else if body["input_code"].to_string() == "meow" {
|
} else if body["input_code"].to_string() == "meow" {
|
||||||
itemz = array![
|
itemz = array![
|
||||||
items::gift_item_basic(10010020, 1, 2, "I need more primogem!!!!!!", &mut user),
|
items::gift_item_basic(10010020, 1, 2, "I need more primogem!!!!!!", &mut user),
|
||||||
|
@ -64,7 +72,7 @@ pub fn serial_code(req: HttpRequest, body: String) -> HttpResponse {
|
||||||
items::gift_item_basic(40080011, 1, 2, "I need more primogem!!!!!!", &mut user),
|
items::gift_item_basic(40080011, 1, 2, "I need more primogem!!!!!!", &mut user),
|
||||||
items::gift_item_basic(40090011, 1, 2, "I need more primogem!!!!!!", &mut user)
|
items::gift_item_basic(40090011, 1, 2, "I need more primogem!!!!!!", &mut user)
|
||||||
];
|
];
|
||||||
} else if body["input_code"].to_string() == "hu tao" {
|
} else if body["input_code"].to_string() == "HuTao" {
|
||||||
itemz = array![
|
itemz = array![
|
||||||
items::gift_item_basic(15500001, 10, 3, "Okay...............", &mut user),
|
items::gift_item_basic(15500001, 10, 3, "Okay...............", &mut user),
|
||||||
items::gift_item_basic(15500002, 10, 3, "Okay...............", &mut user),
|
items::gift_item_basic(15500002, 10, 3, "Okay...............", &mut user),
|
||||||
|
@ -190,7 +198,7 @@ pub fn serial_code(req: HttpRequest, body: String) -> HttpResponse {
|
||||||
return global::send(resp, req);
|
return global::send(resp, req);
|
||||||
}
|
}
|
||||||
|
|
||||||
if body["receive_flg"].as_i32().unwrap_or(0) != 1 {
|
if body["receive_flg"].as_i32().unwrap_or(1) == 1 {
|
||||||
userdata::save_acc_home(&key, user.clone());
|
userdata::save_acc_home(&key, user.clone());
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue