no warngninsngs

This commit is contained in:
Ethan O'Brien 2024-05-24 13:00:12 -05:00
parent 1e9d0236be
commit ba0d38fb2d
7 changed files with 9 additions and 10 deletions

View file

@ -31,7 +31,7 @@ pub fn home(req: HttpRequest, body: String) -> Option<JsonValue> {
})
}
pub fn start(req: HttpRequest, _body: String) -> Option<JsonValue> {
pub fn start(_req: HttpRequest, _body: String) -> Option<JsonValue> {
Some(object!{"select_talk_id_list":[],"get_item_list":[],"is_read":0})
}

View file

@ -201,11 +201,11 @@ fn get_clearrate_json() -> JsonValue {
}
}
pub fn clearrate(req: HttpRequest) -> Option<JsonValue> {
pub fn clearrate(_req: HttpRequest) -> Option<JsonValue> {
Some(get_clearrate_json())
}
pub fn ranking(req: HttpRequest, body: String) -> Option<JsonValue> {
pub fn ranking(_req: HttpRequest, body: String) -> Option<JsonValue> {
let body = json::parse(&encryption::decrypt_packet(&body).unwrap()).unwrap();
let live = body["master_live_id"].as_i64().unwrap();

View file

@ -3,7 +3,7 @@ use actix_web::{HttpRequest};
use crate::encryption;
pub fn error(req: HttpRequest, body: String) -> Option<JsonValue> {
pub fn error(_req: HttpRequest, body: String) -> Option<JsonValue> {
let body = json::parse(&encryption::decrypt_packet(&body).unwrap()).unwrap();
println!("client error: {}", body["code"]);

View file

@ -4,7 +4,7 @@ use actix_web::{HttpRequest};
use crate::router::{global, userdata, items, databases};
use crate::encryption;
pub fn exchange(req: HttpRequest) -> Option<JsonValue> {
pub fn exchange(_req: HttpRequest) -> Option<JsonValue> {
Some(object!{"exchange_list":[]})
}

View file

@ -3,13 +3,12 @@ use actix_web::{HttpRequest};
//todo
pub fn reward(req: HttpRequest) -> Option<JsonValue> {
pub fn reward(_req: HttpRequest) -> Option<JsonValue> {
Some(object!{
"reward_list": []
})
}
pub fn reward_post(req: HttpRequest, _body: String) -> Option<JsonValue> {
pub fn reward_post(_req: HttpRequest, _body: String) -> Option<JsonValue> {
Some(array![])
}

View file

@ -4,7 +4,7 @@ use actix_web::{HttpRequest};
use crate::router::{global, userdata, items};
use crate::encryption;
pub fn events(req: HttpRequest) -> Option<JsonValue> {
pub fn events(_req: HttpRequest) -> Option<JsonValue> {
Some(object!{
"serial_code_list": []
})

View file

@ -2,6 +2,6 @@ use json::{object, JsonValue};
use actix_web::{HttpRequest};
pub fn read(req: HttpRequest, _body: String) -> Option<JsonValue> {
pub fn read(_req: HttpRequest, _body: String) -> Option<JsonValue> {
Some(object!{"gift_list":[],"updated_value_list":{"master_chat_room_ids":[3001001,3101001],"master_chat_chapter_ids":[300100101,310100101]},"reward_list":[{"type":16,"value":3001001,"level":0,"amount":1},{"type":16,"value":3101001,"level":0,"amount":1},{"type":17,"value":300100101,"level":0,"amount":1},{"type":17,"value":310100101,"level":0,"amount":1}],"clear_mission_ids":[]})
}