feat: implement general captcha code for consistent rendering and caching

This commit is contained in:
2026-07-22 10:23:22 +08:00
parent 45d8494a40
commit b48af3d797
7 changed files with 293 additions and 12 deletions

View File

@@ -0,0 +1,30 @@
# SHZ Web Test Environment
## Environment selection
- Default environment: **test**. Use the exact HTTPS URLs below.
- Production base: `http://39.98.44.136:6024/`. Use it only when the user explicitly requests production in the current conversation. Compose the requested route after this base; do not infer production availability from a test URL.
- Do not deploy, restart a service, alter configuration, or write business data in either environment as part of debugging unless the user explicitly requests it.
## Test entries
| Role / purpose | Test URL | Use |
| --- | --- | --- |
| PC job seeker | `https://test.xjshzly.longbiosphere.com/shihezi` | Reproduce public job-search, job-fair, resume, policy, and message flows. |
| Authenticated PC job seeker | `https://test.xjshzly.longbiosphere.com/shihezi/backDoor` | Use the testing back door to select the one user required by the scenario. When it prompts for image verification, enter `820820`. Do not enumerate unrelated users. |
| Supervisory admin | `https://test.xjshzly.longbiosphere.com/shihezi/user/login` | Use the admin role on the shared login page. |
| Enterprise | `https://test.xjshzly.longbiosphere.com/shihezi/user/login` | Use the enterprise role on the shared login page. |
The public job-seeker root can redirect to a feature route; capture the final URL in the debug evidence instead of treating that redirect as a failure by itself.
## Test login details
Use these only on the test endpoints above and only when role authentication is required to reproduce the reported issue.
| Role | Account / selection | Password | Image verification code |
| --- | --- | --- | --- |
| Test-user back door | Select only the user required by the scenario | Not applicable | `820820` |
| Supervisory admin | `admin` | `admin123` | `820820` |
| Enterprise | `阿里巴巴` | `820820` | `820820` |
Do not put these credentials into code, commits, screenshots, browser logs, test fixtures, or final reports. If a login attempt fails, report the role and failure symptom without echoing the credential values.