Skip to content

Commit

Permalink
fix: endpoint update for gacha url
Browse files Browse the repository at this point in the history
  • Loading branch information
lgou2w committed Nov 8, 2023
1 parent cff81ef commit ca19455
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src-tauri/src/gacha/impl_genshin.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl GameDataDirectoryFinder for GenshinGacha {

/// Gacha Url

const ENDPOINT: &str = "/event/gacha_info/api/getGachaLog?";
const ENDPOINT: &str = "/api/getGachaLog?";

impl GachaUrlFinder for GenshinGacha {
fn find_gacha_urls<P: AsRef<Path>>(&self, game_data_dir: P) -> Result<Vec<GachaUrl>> {
Expand Down
2 changes: 1 addition & 1 deletion src-tauri/src/gacha/impl_starrail.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ impl GameDataDirectoryFinder for StarRailGacha {

/// Gacha Url

const ENDPOINT: &str = "/common/gacha_record/api/getGachaLog?";
const ENDPOINT: &str = "/api/getGachaLog?";

impl GachaUrlFinder for StarRailGacha {
fn find_gacha_urls<P: AsRef<Path>>(&self, game_data_dir: P) -> Result<Vec<GachaUrl>> {
Expand Down

0 comments on commit ca19455

Please sign in to comment.