yzexam/README.md

47 lines
1.1 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

# yzexam
在线考试系统
## 功能特性
- 用户登录/注销
- 微信扫码登录
- 考试管理
- 题库管理
- 成绩统计
## 微信扫码登录配置
系统已集成微信扫码登录功能,用户可以通过微信扫描二维码的方式登录系统。
### 配置步骤
1. 在微信公众平台申请服务号并获取AppID和AppSecret
2. 在`exam-online-api/ruoyi-admin/src/main/resources/application.yml`中配置微信参数:
```yaml
wechat:
# 微信公众号AppId
app-id: your_wechat_appid
# 微信公众号AppSecret
app-secret: your_wechat_app_secret
# 授权回调地址
redirect-uri: http://your-domain.com/examapi/wechat/callback
```
3. 执行数据库脚本`doc/微信登录字段添加.sql`更新数据库表结构
### 使用说明
1. 访问系统登录页面
2. 点击"微信扫码登录"按钮
3. 使用微信扫描生成的二维码
4. 在微信中确认登录
5. 系统将自动跳转到主页
## 技术栈
- 后端Spring Boot + MyBatis + Spring Security
- 前端Vue.js + Element UI
- 数据库MySQL
- 微信集成Weixin Java SDK