mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2025-10-08 16:37:20 +08:00
13 lines
297 B
Rust
13 lines
297 B
Rust
use json::{JsonValue};
|
|
use actix_web::{HttpRequest};
|
|
|
|
use crate::encryption;
|
|
|
|
pub fn error(req: HttpRequest, body: String) -> Option<JsonValue> {
|
|
let body = json::parse(&encryption::decrypt_packet(&body).unwrap()).unwrap();
|
|
|
|
println!("client error: {}", body["code"]);
|
|
|
|
None
|
|
}
|