mirror of
https://git.ethanthesleepy.one/ethanaobrien/ew.git
synced 2025-05-13 11:37:33 -05:00
Add iOS global asset hash
This commit is contained in:
parent
faab8c12e6
commit
b6546793f6
2 changed files with 13 additions and 5 deletions
|
@ -7,8 +7,9 @@ use actix_web::{
|
|||
use std::time::{SystemTime, UNIX_EPOCH};
|
||||
use base64::{Engine as _, engine::general_purpose};
|
||||
|
||||
pub const ASSET_VERSION: &str = "13177023d4b7ad41ff52af4cefba5c55";
|
||||
pub const ASSET_HASH: &str = "6a6f3be1da2c3734386a1832e251451a";
|
||||
pub const ASSET_VERSION: &str = "13177023d4b7ad41ff52af4cefba5c55";
|
||||
pub const ASSET_HASH_ANDROID: &str = "017ec1bcafbeea6a7714f0034b15bd0f";
|
||||
pub const ASSET_HASH_IOS: &str = "466d4616d14a8d8a842de06426e084c2";
|
||||
|
||||
pub const ASSET_VERSION_JP: &str = "4c921d2443335e574a82e04ec9ea243c";
|
||||
pub const ASSET_HASH_ANDROID_JP: &str = "67f8f261c16b3cca63e520a25aad6c1c";
|
||||
|
|
|
@ -22,8 +22,11 @@ pub fn asset_hash(req: HttpRequest, body: String) -> HttpResponse {
|
|||
global::ASSET_HASH_IOS_JP
|
||||
}
|
||||
} else {
|
||||
//todo - ios
|
||||
global::ASSET_HASH
|
||||
if android {
|
||||
global::ASSET_HASH_ANDROID
|
||||
} else {
|
||||
global::ASSET_HASH_IOS
|
||||
}
|
||||
};
|
||||
|
||||
let resp = object!{
|
||||
|
@ -58,7 +61,11 @@ pub fn start(req: HttpRequest, body: String) -> HttpResponse {
|
|||
global::ASSET_HASH_IOS_JP
|
||||
}
|
||||
} else {
|
||||
global::ASSET_HASH
|
||||
if android {
|
||||
global::ASSET_HASH_ANDROID
|
||||
} else {
|
||||
global::ASSET_HASH_IOS
|
||||
}
|
||||
};
|
||||
|
||||
userdata::save_acc(&key, user);
|
||||
|
|
Loading…
Add table
Reference in a new issue