mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
no warngninsngs
This commit is contained in:
parent
1e9d0236be
commit
ba0d38fb2d
7 changed files with 9 additions and 10 deletions
|
@ -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})
|
Some(object!{"select_talk_id_list":[],"get_item_list":[],"is_read":0})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -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())
|
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 body = json::parse(&encryption::decrypt_packet(&body).unwrap()).unwrap();
|
||||||
let live = body["master_live_id"].as_i64().unwrap();
|
let live = body["master_live_id"].as_i64().unwrap();
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ use actix_web::{HttpRequest};
|
||||||
|
|
||||||
use crate::encryption;
|
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();
|
let body = json::parse(&encryption::decrypt_packet(&body).unwrap()).unwrap();
|
||||||
|
|
||||||
println!("client error: {}", body["code"]);
|
println!("client error: {}", body["code"]);
|
||||||
|
|
|
@ -4,7 +4,7 @@ use actix_web::{HttpRequest};
|
||||||
use crate::router::{global, userdata, items, databases};
|
use crate::router::{global, userdata, items, databases};
|
||||||
use crate::encryption;
|
use crate::encryption;
|
||||||
|
|
||||||
pub fn exchange(req: HttpRequest) -> Option<JsonValue> {
|
pub fn exchange(_req: HttpRequest) -> Option<JsonValue> {
|
||||||
Some(object!{"exchange_list":[]})
|
Some(object!{"exchange_list":[]})
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -3,13 +3,12 @@ use actix_web::{HttpRequest};
|
||||||
|
|
||||||
|
|
||||||
//todo
|
//todo
|
||||||
pub fn reward(req: HttpRequest) -> Option<JsonValue> {
|
pub fn reward(_req: HttpRequest) -> Option<JsonValue> {
|
||||||
|
|
||||||
Some(object!{
|
Some(object!{
|
||||||
"reward_list": []
|
"reward_list": []
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn reward_post(req: HttpRequest, _body: String) -> Option<JsonValue> {
|
pub fn reward_post(_req: HttpRequest, _body: String) -> Option<JsonValue> {
|
||||||
Some(array![])
|
Some(array![])
|
||||||
}
|
}
|
||||||
|
|
|
@ -4,7 +4,7 @@ use actix_web::{HttpRequest};
|
||||||
use crate::router::{global, userdata, items};
|
use crate::router::{global, userdata, items};
|
||||||
use crate::encryption;
|
use crate::encryption;
|
||||||
|
|
||||||
pub fn events(req: HttpRequest) -> Option<JsonValue> {
|
pub fn events(_req: HttpRequest) -> Option<JsonValue> {
|
||||||
Some(object!{
|
Some(object!{
|
||||||
"serial_code_list": []
|
"serial_code_list": []
|
||||||
})
|
})
|
||||||
|
|
|
@ -2,6 +2,6 @@ use json::{object, JsonValue};
|
||||||
use actix_web::{HttpRequest};
|
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":[]})
|
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":[]})
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue