fix: wish url
This commit is contained in:
parent
1b41f0e791
commit
d95cfbaf30
1 changed files with 1 additions and 1 deletions
|
@ -816,7 +816,7 @@ impl SimpleComponent for App {
|
||||||
let web_cache = String::from_utf8_lossy(&web_cache);
|
let web_cache = String::from_utf8_lossy(&web_cache);
|
||||||
|
|
||||||
// https://webstatic-sea.[ho-yo-ver-se].com/hkrpg/event/e20211215gacha-v3/index.html?......
|
// https://webstatic-sea.[ho-yo-ver-se].com/hkrpg/event/e20211215gacha-v3/index.html?......
|
||||||
if let Some(url) = web_cache.lines().rev().find(|line| line.contains("gacha-v3/index.html")) {
|
if let Some(url) = web_cache.lines().rev().find(|line| line.contains("gacha-v2/index.html") || line.contains("gacha-v3/index.html")) {
|
||||||
let url_begin_pos = url.find("https://").unwrap();
|
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();
|
let url_end_pos = url_begin_pos + url[url_begin_pos..].find("\0\0\0\0").unwrap();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue