8000 fix(115): get 115 app ver by power721 · Pull Request #8469 · AlistGo/alist · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

fix(115): get 115 app ver #8469

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open

Conversation

power721
Copy link
@power721 power721 commented May 2, 2025

get latest 115 app version

get latest 115 app version
Copy link

Walkthrough

This pull request updates the method for retrieving the latest version of the 115 app. It changes the return type of the getAppVersion function to return a single version string instead of a list and updates the logic to handle errors and parse the response correctly.

Changes

File Summary
drivers/115/appver.go Updated getAppVersion to return a string, added error handling, and updated the app version to 35.6.0.3. Introduced new types VersionResp, Versions, and Version to parse JSON response.

}

return result.Data.GetAppVersions(), nil
err = utils.Json.Unmarshal(res.Body(), &result)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ensure that the JSON unmarshalling handles all possible fields and errors correctly. If the response structure changes, this could lead to runtime errors.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant
0