47 lines
1.1 KiB
Markdown
47 lines
1.1 KiB
Markdown
# 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 |