Skip to content

fix: parse alert message for mark query result#49

Merged
renbaoshuo merged 4 commits intomainfrom
fix/mark-alert
Sep 10, 2025
Merged

fix: parse alert message for mark query result#49
renbaoshuo merged 4 commits intomainfrom
fix/mark-alert

Conversation

@klxiaoniu
Copy link
Contributor

No description provided.

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR adds alert message parsing to the mark query functionality to handle cases where students cannot access their grades due to unpaid tuition fees. The main purpose is to provide better error handling by detecting and parsing JavaScript alert messages in the HTML response.

  • Added regular expression parsing to detect window.alert() messages in HTML responses
  • Enhanced error handling to return specific error messages when grade access is restricted
  • Improved user experience by providing clear feedback about access restrictions

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

renbaoshuo and others added 3 commits September 10, 2025 18:19
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
@renbaoshuo renbaoshuo merged commit 074109f into main Sep 10, 2025
4 checks passed
@renbaoshuo renbaoshuo deleted the fix/mark-alert branch September 10, 2025 10:21
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.

3 participants