An iOS application designed specifically for campus life, supporting real-time queries of meal card balance, water fees, and electricity fees.
- Email Verification Login: Use @wku.edu.cn email to receive verification codes
- Security Assurance: 5-minute validity period for verification codes with automatic expiration protection
- Login State Management: Persistent login state, no need to log in again after app restart
- Meal Card Balance Query: Real-time campus card balance information
- Water Fee Query: Check dormitory water fee balance and usage
- Electricity Fee Query: Monitor dormitory electricity fee balance and power consumption
- Building, floor, and room cascading selection
- JSON data-based room information management
- Configuration completeness validation
- Local persistent storage of query history
- Support for viewing, deleting, and clearing history records
- Visual display of query status
- Basic Configuration: Room information selection
- Developer Mode: Custom API parameter configuration
- Configuration Management: Save, reset, import and export
- Native interface built with SwiftUI
- Card-style design with clear information display
- Support for Light/Dark mode adaptation
- Smooth animation effects and interactive feedback
- Dynamic status display for query buttons
- Configuration guidance and error prompts
- Intuitive icons and color differentiation
- SwiftUI: Declarative UI framework
- Combine: Reactive programming
- UserDefaults: Local data persistence
- URLSession: Network request handling
- Structured configuration management
- JSON data parsing and processing
- Asynchronous network requests and error handling
- Login Verification: Enter your @wku.edu.cn email address
- Receive Verification Code: Check your email and enter the 6-digit verification code
- Complete Login: Automatically enter the main interface after successful verification
- Click the settings button to enter the configuration page
- Select your building, floor, and room
- If you need to customize API parameters, enter "Developer Mode"
- Save settings and return to the main interface
- Ensure room information is correctly configured
- Click the "Query" button to get real-time data
- View history records to understand usage trends
- Login Authentication: Must use @wku.edu.cn email for verification
- Room Configuration: Must be completed before querying water and electricity fees
- Card User ID: Optional configuration, card balance query is skipped when not set
- Developer Parameters: Advanced users can customize API interface parameters
- Logout: Safe logout available in the settings page
- All data is stored locally and not uploaded to third-party servers
- Sensitive configuration information is only saved locally on the device
- Network requests only access official query interfaces
- Card Balance:
https://webapp.xiaofubao.com/card/getCardMoney - Water & Electricity Fees:
https://application.xiaofubao.com/app/electric/queryRoomSurplus
cardUserId: Card query user IDroomUserId: Water and electricity fee query user IDdeviceId: Device identifierareaId_elec: Electricity fee query area IDareaId_water: Water fee query area ID
- Use browser developer tools or proxy tools
- Perform a query on the official query page
- Get the
shiroJIDvalue from the Cookie in the request header - Get the corresponding ID values from the request parameters