# 红院教务系统验证码识别 **Repository Path**: jsongg/uoh_zf_captcha ## Basic Information - **Project Name**: 红院教务系统验证码识别 - **Description**: No description available - **Primary Language**: JavaScript - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 1 - **Created**: 2022-10-18 - **Last Updated**: 2022-10-18 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README #### 红河学院正方教务系统登录页验证码识别油猴脚本 > 原项目地址:[https://github.com/yswift/ZF_Verify](https://github.com/yswift/ZF_Verify) 将 `uoh_zf_captcha.js` 导入到 `Tampermonkey` 中。修改变量 `student_num` 为学号,`password` 为密码。其他变量 `auto_login` 为是否自动登录,`role` 为用户角色,取值有 `student`,`teacher`。例如: ```javascript let student_num = '201905201314'; let password = '@Beining520'; let auto_login = true; let role = 'student'; ``` 如自定义加载模型时,应注意 CORS (Cross-Origin Resource Sharing) 问题,nginx 可参考如下配置: ``` location / { add_header Access-Control-Allow-Origin *; add_header Access-Control-Allow-Methods 'GET, POST, OPTIONS'; add_header Access-Control-Allow-Headers 'DNT,X-Mx-ReqToken,Keep-Alive,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Authorization'; if ($request_method = 'OPTIONS') { return 204; } } ``` **注意**:该脚本仅能在校园网环境下使用,且处于图书馆,博远楼,工学楼,文鼎楼区域内使用。