mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew
synced 2025-10-09 00:47:19 +08:00
Properly handle jp asset version/hash
This commit is contained in:
@@ -1,7 +1,8 @@
|
||||
use json::{object, JsonValue};
|
||||
use crate::encryption;
|
||||
use actix_web::{
|
||||
HttpResponse
|
||||
HttpResponse,
|
||||
http::header::{HeaderValue, HeaderMap}
|
||||
};
|
||||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
|
||||
@@ -9,6 +10,9 @@ use std::time::{SystemTime, UNIX_EPOCH};
|
||||
pub const ASSET_VERSION: &str = "13177023d4b7ad41ff52af4cefba5c55";
|
||||
pub const ASSET_HASH: &str = "9fbfeda43a5cbf744ef23c06c22170aa";
|
||||
|
||||
pub const ASSET_VERSION_JP: &str = "4c921d2443335e574a82e04ec9ea243c";
|
||||
pub const ASSET_HASH_JP: &str = "67f8f261c16b3cca63e520a25aad6c1c";
|
||||
|
||||
pub fn get_login(headers: &HeaderMap) -> String {
|
||||
let blank_header = HeaderValue::from_static("");
|
||||
let key = headers.get("f19c72ba").unwrap_or(&blank_header).to_str().unwrap_or("");
|
||||
|
Reference in New Issue
Block a user