Increase user ex when live finished
This commit is contained in:
parent
84925282cf
commit
893a6f1543
@ -119,6 +119,8 @@ pub fn end(req: HttpRequest, body: String) -> HttpResponse {
|
||||
}
|
||||
user["stamina"]["last_updated_time"] = global::timestamp().into();
|
||||
|
||||
user["user"]["exp"] = (user["user"]["exp"].as_i32().unwrap() + body["use_lp"].as_i32().unwrap()).into();
|
||||
|
||||
let live = update_live_data(&mut user, &body);
|
||||
|
||||
userdata::save_acc(&key, user.clone());
|
||||
|
Loading…
x
Reference in New Issue
Block a user