Merge pull request #345 from ezKEa/wishes-fix

fix: update wish url
This commit is contained in:
Observer KRypt0n_ 2024-03-24 09:17:44 +02:00 committed by GitHub
commit d4de83c46b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -763,7 +763,7 @@ impl SimpleComponent for App {
let web_cache = String::from_utf8_lossy(&web_cache);
// https://webstatic-sea.[ho-yo-ver-se].com/[ge-nsh-in]/event/e20190909gacha-v2/index.html?......
if let Some(url) = web_cache.lines().rev().find(|line| line.contains("gacha-v2/index.html")) {
if let Some(url) = web_cache.lines().rev().find(|line| line.contains("gacha-v3/index.html")) {
let url_begin_pos = url.find("https://").unwrap();
let url_end_pos = url_begin_pos + url[url_begin_pos..].find("\0\0\0\0").unwrap();