Add iOS global asset hash

This commit is contained in:
Ethan O'Brien 2024-04-02 12:35:00 -05:00
parent faab8c12e6
commit b6546793f6
2 changed files with 13 additions and 5 deletions

View file

@ -8,7 +8,8 @@ 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_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";

View file

@ -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);